PHP Classes

File: system/modules/view/info.xml

Recommend this page to a friend!
  Classes of Mihajlo Siljanoski  >  Xmodule  >  system/modules/view/info.xml  >  Download  
File: system/modules/view/info.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Xmodule
Modular Web application development framework
Author: By
Last change:
Date: 7 years ago
Size: 919 bytes


Class file image Download
    <description>View module can be used for loading view or parts of view on some page.</description>
        <return>$view will return object with a 2 methods: "load" and "get". Every method has 2 arguments: path to template file and data needs on view.</return>
    //init view module
    //example of use get() method
    $content=$view->get('themes/dark/header.php',array('title'=>'Example website'));
    echo $content
    //example of use load() method
    $view->load('themes/dark/header.php',array('content'=>'...example content...'));
    <name>Mihajlo Siljanoski</name>
For more information send a message to info at phpclasses dot org.