Err: "/www/wwwroot/transmoe/protected/view/err/embed_404.html" is not exists!
- /www/wwwroot/transmoe/protected/lib/speed.php on line 406
401.
}
402.
}
403.
404.
public function compile($tempalte_name){
405.
$file = $this->template_dir.DS.$tempalte_name;
406.
407.
if(!file_exists($file)) err('Err: "'.$file.'" is not exists!');
if(!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) err('Err: Directory "'.$this->compile_dir.'" is not writable or readable');
408.
409.
$complied_file = $this->compile_dir.DS.md5(realpath($file)).'.'.filemtime($file).'.'.basename($tempalte_name).'.php';
410.
if(file_exists($complied_file))return $complied_file;
411.
- /www/wwwroot/transmoe/protected/lib/speed.php on line 384
379.
$this->template_dir = $template_dir;
380.
$this->compile_dir = $compile_dir;
381.
}
382.
383.
public function render($tempalte_name){
384.
385.
$complied_file = $this->compile($tempalte_name);
386.
@ob_start();
387.
extract($this->template_vals, EXTR_SKIP);
388.
$_view_obj = & $this;
389.
include $complied_file;
- /www/wwwroot/transmoe/protected/lib/speed.php on line 201
196.
$this->_auto_display = false;
197.
198.
if($return){
199.
return $this->_v->render($tpl_name);
200.
}else{
201.
202.
echo $this->_v->render($tpl_name);
}
203.
}
204.
}
205.
206.
class Model{
- /www/wwwroot/transmoe/protected/controller/PostController.php on line 11
6.
$this->title = '分享浏览';
7.
$this->post = new Post();
8.
$this->postInfo = $this->post->postInfo(arg('post_id'));
9.
if(!$this->postInfo) {
10.
$this->title = '分享不存在';
11.
12.
return $this->display('err/embed_404.html');
}else if($this->postInfo['expired_at'] && strtotime($this->postInfo['expired_at'])<time()){
13.
$this->title = '分享已过期';
14.
return $this->display('err/embed_404.html');
15.
}
16.
if(arg('file_id')) {
- /www/wwwroot/transmoe/protected/lib/speed.php on line 84
79.
if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
80.
if(!class_exists($controller_name, true))_err_router("Err: Controller '$controller_name' is not exists!");
81.
if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
82.
83.
$controller_obj = new $controller_name();
84.
85.
$controller_obj->$action_name();
86.
if($controller_obj->_auto_display){
87.
$auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
88.
if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
89.
}
- /www/wwwroot/transmoe/index.php on line 3
1.
<?php
2.
define('APP_DIR', realpath('./'));
3.
require(APP_DIR.'/protected/lib/speed.php');