cms/js.php不存在!

226.          }
227.          if(!is_file($includefile)){
228.              //兼容自定义扩展和.html模板
229.              $includefile str_replace(File_TXT,'.html',$includefile);
230.              if (!is_file($includefile)) {
231.                  Error_msg($file.'不存在!');
232.              }
233.              
234.          }
235.    
236.          $content file_get_contents($includefile);
133.      //模板分解替换
134.      public function template_html($content){
135.          //include标签
136.          preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
137.          foreach($i[0] as $k=>$v){
138.              $content=str_ireplace($v,$this->template_html_include($i[1][$k]),$content);
139.          }
140.          //loop标签
141.          preg_match_all('/\{loop (.*?)\}/si',$content,$i);
142.          $this->check_template_err(substr_count($content'{/loop}'),count($i[0]),'loop');
143.          foreach($i[0] as $k=>$v){
101.          }
102.          if(APP_DEBUG===true){
103.              $fp_tp=@fopen($controllerLayout,"r");
104.              $fp_txt=@fread($fp_tp,filesize($controllerLayout));
105.              @fclose($fp_tp);
106.              $fp_txt=$this->template_html($fp_txt);
107.              $fp_txt = "<?php if (!defined('CORE_PATH')) exit();?>".$fp_txt;
108.              $fpt_tpl=@fopen($cache_file,"w");
109.              @fwrite($fpt_tpl,$fp_txt);
110.              @fclose($fpt_tpl);
111.          }else if(is_readable($cache_file)!==true || $isclear){
65.              $this->template($controllerLayout);
66.          } else {
67.              //兼容自定义扩展和.html模板
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.            
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.          
969.              }
970.              
971.              exit;
972.          }
973.          header("HTTP/1.0 404");
974.          $this->display($this->template.'/404');
975.          $this->end_cache($this->cache_file);
976.          exit;
977.      }
978.      
979.      //开启检查缓存
371.                  exit;
372.              }
373.              
374.              
375.              //错误页面->404
376.              $this->error(JZLANG('输入url错误!'));
377.              exit;
378.          }
379.          
380.          
381.          
326.                  }
327.              
328.              }
329.          }
330.          $dispatch = new $controller($param);
331.          $dispatch->$actionName($param);
332.         
333.          
334.          
335.          
336.      }
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.