Skip to content
Nolan Chou edited this page May 26, 2015 · 1 revision

Template

Template is a static class, and init in framework's initialization.

Quick

1.Pass parameters
template::assign('name', $name);
2.Display template
template::display('folder/index'); // template file is: /template/folder/index.tpl.php

Config

  • 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

Information

  • License Agreement
  • Change Log

Tutorial

Advanced

  • Dynamic expansion of class
  • Callback
  • Hook

Tools

  • File
  • Image
  • Page
  • String
  • Upload
  • Action (hook)
  • Filter (hook)
Clone this wiki locally