新框架 萌新落泪

#1 9233767233

Err: "D:\qz\UPUPW_NP5.3\htdocs\protected\view\guestboook.html" is not exists!

  • D:\qz\UPUPW_NP5.3\htdocs\protected\lib\speed.php on line 405
400.          }
401.      }
402.
403.      public function compile($tempalte_name){
404.          $file = $this->template_dir.DS.$tempalte_name;
405.          if(!file_exists($file)) err('Err: "'.$file.'" is not exists!');

406.          if(!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) err('Err: Directory "'.$this->compile_dir.'" is not writable or readable');
407.
408.          $complied_file = $this->compile_dir.DS.md5(realpath($file)).'.'.filemtime($file).'.'.basename($tempalte_name).'.php';
409.          if(file_exists($complied_file))return $complied_file;
410.


  • D:\qz\UPUPW_NP5.3\htdocs\protected\lib\speed.php on line 383
378.          $this->template_dir = $template_dir;      
379.          $this->compile_dir  = $compile_dir;
380.      }
381.       
382.      public function render($tempalte_name){
383.          $complied_file = $this->compile($tempalte_name);

384.          
385.          @ob_start();
386.          extract($this->template_vals, EXTR_SKIP);
387.          $_view_obj = & $this;
388.          include $complied_file;


  • D:\qz\UPUPW_NP5.3\htdocs\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.              echo $this->_v->render($tpl_name);

202.          }
203.      }
204. }
205.
206. class Model{


  • D:\qz\UPUPW_NP5.3\htdocs\protected\controller\MainController.php on line 4
1. 2. class MainController extends BaseController {
3.      function actionIndex(){
4.          $this->display("guestboook.html");

5.      }
6. }


  • D:\qz\UPUPW_NP5.3\htdocs\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. $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. }


  • D:\qz\UPUPW_NP5.3\htdocs\index.php on line 3
1. 2. define('APP_DIR', realpath('./'));
3. require(APP_DIR.'/protected/lib/speed.php');


2.jpg






2019-07-24 11:41:57

#2 jake

"D:\qz\UPUPW_NP5.3\htdocs\protected\view\guestboook.html" is not exists!

落泪~~~

2019-07-25 09:28:43