无法找到视图文件,页面模板:ypangnet/404.html

61.          $controllerLayout str_ireplace(['//','\\'],'/',$controllerLayout);
62.          //判断视图文件是否存在
63.          if (file_exists($controllerLayout)) {
64.              $this->template($controllerLayout);
65.          } else {
66.             Error_msg('无法找到视图文件,页面模板:'.$name.File_TXT);
67.          }
68.          
69.          
70.          
71.      }
62.      }
63. 
64.      // 渲染视图
65.      public function display($name=null)
66.      {
67.          $this->_view->render($name);
68.      }
69.      
70.      // 获取URL参数值
71.      public function frparam($str=null$int=0,$default FALSE$method null){
72.          
992.              }
993.              
994.              exit;
995.          }
996.          header("HTTP/1.0 404");
997.          $this->display($this->template.'/404');
998.          $this->end_cache($this->cache_file);
999.          exit;
1000.      }
1001.      
1002.      //开启检查缓存
600.      
601.      //详情
602.      function jizhi_details($id){
603.          
604.          if(!$id){
605.              $this->error(JZLANG('缺少ID!'));
606.          }
607.          if(isset($_SESSION['admin']) && $_SESSION['admin']['id']!=0){
608.              $details M($this->type['molds'])->find(array('id'=>$id,'tid'=>$this->type['id']));
609.          }else{
610.              $details M($this->type['molds'])->find(array('id'=>$id,'isshow'=>1,'tid'=>$this->type['id']));
181.              
182.              if(isset($id)){
183.                  
184.                  //默认是详情页-非详情页另做处理
185.                  $this->id $id;
186.                  $this->jizhi_details($this->id);
187.                  if(!$this->frparam('ajax')){
188.                  $this->end_cache($this->cache_file);
189.                  }
190.                  
191.              }
334.                  }
335.              
336.              }
337.          }
338.          $dispatch = new $controller($param);
339.          $dispatch->$actionName($param);
340.         
341.          
342.          
343.          
344.      }
89.          spl_autoload_register(array($this'loadClass'));
90.          $this->setDbConfig();
91.          $this->setReporting();
92.          $this->removeMagicQuotes();
93.          //$this->unregisterGlobals();
94.          $this->route();
95.          
96.      }
97. 
98.      // 路由处理
99.      public function route()
464. 
465.  // 加载配置文件
466.  $config = require(APP_PATH 'conf/config.php');
467. 
468.  //实例化核心类
469.  (new frphp($config))->run();
45. 
46.  //定义静态文件路径
47.  define('Tpl_style','/static/');
48. 
49.  // 加载框架文件
50.  require(APP_PATH 'frphp/fr.php');
51. 
52.  // 就这么简单~
53.