-
Notifications
You must be signed in to change notification settings - Fork 3
Template
Nolan Chou edited this page May 26, 2015
·
1 revision
Template is a static class, and init in framework's initialization.
template::assign('name', $name);
template::display('folder/index'); // template file is: /template/folder/index.tpl.php
- path : (string) default is project's root path
- dir : (string) template folder's name, default "template"
- vars : (array) global variables, like title / website's name
- callback : (array) callback functions
- display : (function) display callback
- License Agreement
- Change Log
- Welcome
- Server Requirements
- Getting Started
- Datebase
- Template
- Debug
- Route
- Log
- Language
- Dynamic expansion of class
- Callback
- Hook
- File
- Image
- Page
- String
- Upload
- Action (hook)
- Filter (hook)