PHP Classes

File: views/index.phtml

Recommend this page to a friend!
  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: 9 years ago
Size: 400 bytes


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

For more information send a message to info at phpclasses dot org.