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: 12 years ago
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