求教,部署在linux云主机上报模板不存在

浏览:2523 发布日期:2017/01/03 分类:ThinkPHP5专区 关键字: thinkphp5 linux 部署

[0] TemplateNotFoundException in Think.php line 78
模板文件不存在:/data/home/hyu2512290001/htdocs/searchimg/public/../application/index/view/index/index.html

*/
public function fetch($template, $data = [], $config = [])
{
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);
}

/**
* 渲染模板内容
* @access public

PS:url的大小写已经处理过
// 关闭URL中控制器和操作名的自动转换
'url_convert' => false,
最佳答案
评论( 相关
后面还有条评论,点击查看>>