无法找到视图文件,页面模板:cl/article/yyzz-details.html.php

68.              $controllerLayout str_replace(File_TXT,'.html',$controllerLayout);
69.              if (file_exists($controllerLayout)) {
70.                  $this->template($controllerLayout);
71.              }else{
72.                  $f strpos($name,File_TXT)!==false $name $name.File_TXT;
73.                  Error_msg('无法找到视图文件,页面模板:'.$f);
74.              }
75.            
76.          }
77.          
78.          
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.          
548.          }
549.          if(!$this->type['details_html']){
550.              $details_html M('molds')->getField(['biaoshi'=>$this->type['molds']],'details_html');
551.              $this->type['details_html'] = str_replace('.html','',$details_html);
552.          }
553.          $this->display($this->template.'/'.$this->type['molds'].'/'.$this->type['details_html']);
554.          
555.      }
556.      
557.      //搜索--单一模块搜索
558.      function search(){
209.              }
210.              if(isset($id) && $id){
211.                  
212.                  //默认是详情页-非详情页另做处理
213.                  $this->id $id;
214.                  $this->jizhi_details($this->id);
215.                  if(!$this->frparam('ajax')){
216.                  $this->end_cache($this->cache_file);
217.                  }
218.                  
219.              }
319.              foreach($hookconfig as $v){
320.                  if("app\\".$v['module']==$app_home && $v['controller']==APP_CONTROLLER && (strpos(','.$v['action'].',',','.APP_ACTION.',')!==false || $v['all_action']==1)){
321.                      $newhook_controller '\\app\\'.$v['module'].'\\plugins\\'.$v['hook_controller'].'Controller';
322.                      $newhook = new $newhook_controller($param);
323.                      $hook_action $v['hook_action'];
324.                      $newhook->$hook_action($param);
325.                      $newhook null;
326.                  }
327.              
328.              }
329.          }
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()
456. 
457.  // 加载配置文件
458.  $config = require(APP_PATH 'conf/config.php');
459. 
460.  //实例化核心类
461.  (new frphp($config))->run();
47. 
48.  //定义静态文件路径
49.  define('Tpl_style','/static/');
50. 
51.  // 加载框架文件
52.  require(APP_PATH 'frphp/fr.php');
53. 
54.  // 就这么简单~
55.