Search Results

Search found 31 results on 2 pages for 'waiwai933'.

Page 2/2 | < Previous Page | 1 2 

  • What is an example of MVC in PHP?

    - by waiwai933
    I'm trying to understand the MVC pattern. Here's what I think MV is: Model: <?php if($a == 2){ $variable = 'two'; } else{ $variable = 'not two'; } $this->output->addContent($variable); $this->output->displayContent(); ?> View: <?php class output{ private $content; public function addContent($var){ $this->content = 'The variable is '.$var; } public function displayContent(){ include 'header.php'; echo $content; include 'footer.php'; } } ?> Is this right? If so, what is the controller?

    Read the article

  • Transferring object from parent to child

    - by waiwai933
    I'm currently developing an Custom Application using the IP.Board framework, which is in PHP, which by default, creates a IPSMember object for the logged-in user. However, I'm developing an additional class, basically class SpecialUser extends IPSMember Is there a way to get the parent object, which is IPSMember to change to SpecialUser?

    Read the article

  • When to use JOINs

    - by waiwai933
    It seems to me that there are two scenarios in which to use JOINs: When data would otherwise be duplicated When data from one query would otherwise be used in another query Are these scenarios right? Are there any other scenarios in which to use JOIN?

    Read the article

< Previous Page | 1 2