thinkphp 5.0 fetch nginx1.10.3提示模板不存在

浏览:1693 发布日期:2017/05/18 分类:ThinkPHP5专区
[0] TemplateNotFoundException in Think.php line 82
模板文件不存在:/web/web/b2b_project/public_html/public/../application/index/view/index/index.html
{

if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
// 获取模板文件名
$template = $this->parseTemplate($template);
}

// 模板不存在 抛出异常
if (!is_file($template)) {
throw new TemplateNotFoundException('template not exists:' . $template, $template);
}
// 记录视图信息
App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
$this->template->fetch($template, $data, $config);
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>