MemoryRefresh!

Patterns / Mvc     Mvc



Questions Answers 0%

Pages   0 from 91
Questions   0 from 142

Reset


Model View Controller separates business logic (MODEL) from display (VIEW) and decisional (CONTROLLER)
<?php // controller class Article_Controller_Front extends MyLibrary_Controller_Action { public function listAction() { $articles = $this->articleModel->getArticles(); // --- Look Here --- // $this->render('article.phtml'); } } // model class Models_Article { public function getArticles() { ... } } // view <html> <body> This is article.phtml </body> </html>

Related Pages

Observer
Singleton
Front
Factory
Registry
Mvc
Active record


0% 100%
 
 
0 pages 91 pages
1) MVC Pattern







Model View Controller separates business logic (MODEL) from display (VIEW) and decisional (CONTROLLER)
<?php // controller class Article_Controller_Front extends MyLibrary_Controller_Action { public function listAction() { $articles = $this->articleModel->getArticles(); // --- Look Here --- // $this->render('article.phtml'); } } // model class Models_Article { public function getArticles() { ... } } // view <html> <body> This is article.phtml </body> </html>

References









Programming

Php
   
Regex
   
MySQL
   
Css
   
jQuery
   
Git
   


References