无法找到视图文件,页面模板:phone/404.php
- D:\www\frphp\lib\View.php on line 73
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.
74.
Error_msg('无法找到视图文件,页面模板:'.$f);
}
75.
76.
}
77.
78.
- D:\www\frphp\lib\Controller.php on line 67
62.
}
63.
64.
// 渲染视图
65.
public function display($name=null)
66.
{
67.
68.
$this->_view->render($name);
}
69.
70.
// 获取URL参数值
71.
public function frparam($str=null, $int=0,$default = FALSE, $method = null){
72.
- D:\www\app\home\c\HomeController.php on line 974
969.
}
970.
971.
exit;
972.
}
973.
header("HTTP/1.0 404");
974.
975.
$this->display($this->template.'/404');
$this->end_cache($this->cache_file);
976.
exit;
977.
}
978.
979.
//开启检查缓存
- D:\www\app\home\c\HomeController.php on line 588
583.
584.
//详情
585.
function jizhi_details($id){
586.
587.
if(!$id){
588.
589.
$this->error(JZLANG('缺少ID!'));
}
590.
if(isset($_SESSION['admin']) && $_SESSION['admin']['id']!=0){
591.
$details = M($this->type['molds'])->find(array('id'=>$id,'tid'=>$this->type['id']));
592.
}else{
593.
$details = M($this->type['molds'])->find(array('id'=>$id,'isshow'=>1,'tid'=>$this->type['id']));
- D:\www\app\home\c\HomeController.php on line 186
181.
182.
if(isset($id)){
183.
184.
//默认是详情页-非详情页另做处理
185.
$this->id = $id;
186.
187.
$this->jizhi_details($this->id);
if(!$this->frparam('ajax')){
188.
$this->end_cache($this->cache_file);
189.
}
190.
191.
}
- D:\www\frphp\fr.php on line 331
326.
}
327.
328.
}
329.
}
330.
$dispatch = new $controller($param);
331.
332.
$dispatch->$actionName($param);
333.
334.
335.
336.
}
- D:\www\frphp\fr.php on line 94
89.
spl_autoload_register(array($this, 'loadClass'));
90.
$this->setDbConfig();
91.
$this->setReporting();
92.
$this->removeMagicQuotes();
93.
//$this->unregisterGlobals();
94.
95.
$this->route();
96.
}
97.
98.
// 路由处理
99.
public function route()
- D:\www\frphp\fr.php on line 461
456.
457.
// 加载配置文件
458.
$config = require(APP_PATH . 'conf/config.php');
459.
460.
//实例化核心类
461.
(new frphp($config))->run();
- D:\www\index.php on line 57
52.
53.
//定义静态文件路径
54.
define('Tpl_style','/static/');
55.
56.
// 加载框架文件
57.
58.
require(APP_PATH . 'frphp/fr.php');
59.
// 就这么简单~
60.