/** * 模板引擎 *+-------- */ public function action_template() { $template = new Template(); $template->bindvar(array('var' => 'hello wolrd', 'total' => 10, 'array' => array(1, 2, 3, 4, 5, 6)))->display('index.tpl'); }