Err: "/www/wwwroot/transmoe/protected/view/err/embed_404.html" is not exists!

401.          }
402.      }
403. 
404.      public function compile($tempalte_name){
405.          $file $this->template_dir.DS.$tempalte_name;
406.          if(!file_exists($file)) err('Err: "'.$file.'" is not exists!');
407.          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. 
379.          $this->template_dir $template_dir;     
380.          $this->compile_dir  $compile_dir;
381.      }
382.      
383.      public function render($tempalte_name){
384.          $complied_file $this->compile($tempalte_name);
385.          
386.          @ob_start();
387.          extract($this->template_valsEXTR_SKIP);
388.          $_view_obj = & $this;
389.          include $complied_file;
196.          $this->_auto_display false;
197.          
198.          if($return){
199.              return $this->_v->render($tpl_name);
200.          }else{
201.              echo $this->_v->render($tpl_name);
202.          }
203.      }
204.  }
205. 
206.  class Model{
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.              return $this->display('err/embed_404.html');
12.          }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')) {
79.  if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
80.  if(!class_exists($controller_nametrue))_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.  $controller_obj->$action_name();
85. 
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.  }
1.  <?php
2.  define('APP_DIR'realpath('./'));
3.  require(APP_DIR.'/protected/lib/speed.php');