Login   Register  
PHP Classes
elePHPant
Icontem

File: views/index.phtml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of martin barker  >  lightweight MVC  >  views/index.phtml  >  Download  
File: views/index.phtml
Role: Example script
Content type: text/plain
Description: Views are loaded into the object calling them E.G controller_index
Class: lightweight MVC
Implements the MVC design pattern
Author: By
Last change: fixed example view
Date: 2012-02-07 09:47
Size: 400 bytes
 

Contents

Class file image Download
Views are powerfull in lightweight MVC it allows a view to access the public method's / variables of a loading controller<br />
loadView is a public method inside Controller (controllers/controller.php)
allowing the extening controller controllers_index to access it and then allowing the views of controllers_index to access the file.
<br />
<br />
<?php $this->loadView("include/inc"); ?>World