Err: "/www/wwwroot/syz.kuz5.cn/protected/view/default/index.html" is not exists!
- /www/wwwroot/syz.kuz5.cn/protected/lib/speed.php on line 778
773.
* @return string
774.
*/
775.
public function compile($tempalte_name) {
776.
$file = $this->template_dir . DS . $tempalte_name;
777.
if (!file_exists($file)) {
778.
779.
err('Err: "' . $file . '" is not exists!');
}
780.
781.
if (!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) {
782.
err('Err: Directory "' . $this->compile_dir . '" is not writable or readable');
783.
}
- /www/wwwroot/syz.kuz5.cn/protected/lib/speed.php on line 739
734.
*
735.
* @param string $tempalte_name 模板名
736.
* @return string
737.
*/
738.
public function render($tempalte_name) {
739.
740.
$complied_file = $this->compile($tempalte_name);
741.
@ob_start();
742.
extract($this->template_vals, EXTR_SKIP);
743.
$_view_obj = &$this;
744.
include $complied_file;
- /www/wwwroot/syz.kuz5.cn/protected/lib/speed.php on line 357
352.
$this->_auto_display = false;
353.
354.
if ($return) {
355.
return $this->_v->render($tpl_name);
356.
} else {
357.
358.
echo $this->_v->render($tpl_name);
}
359.
}
360.
}
361.
362.
/**
- /www/wwwroot/syz.kuz5.cn/protected/controller/MainController.php on line 14
9.
$template_index = $template.'/index.html';
10.
}else{
11.
echo TEMPLATE_ROOT;
12.
exit(' -> 无首页模板,请前往后台进行首页模板设置');
13.
}
14.
15.
$this->display($template_index);
}
16.
}
- /www/wwwroot/syz.kuz5.cn/protected/lib/speed.php on line 158
153.
_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
154.
}
155.
156.
// 执行控制器
157.
$controller_obj = new $controller_name();
158.
159.
$controller_obj->$action_name();
160.
// 自动渲染视图
161.
if ($controller_obj->_auto_display) {
162.
$auto_tpl_name = (empty($__module) ? '' : $__module . DS) . $__controller . '_' . $__action . '.html';
163.
if (file_exists(APP_DIR . DS . 'protected' . DS . 'view' . DS . $auto_tpl_name)) {
- /www/wwwroot/syz.kuz5.cn/index.php on line 108
103.
}
104.
105.
define('APP_DIR', realpath('./'));
106.
require(APP_DIR.'/protected/Version.php');
107.
require(APP_DIR.'/protected/lib/Common.php');
108.
109.
require(APP_DIR.'/protected/lib/speed.php');
?>