tp5把首页放到根目录却导致模块不存在

浏览:1251 发布日期:2019/06/03 分类:求助交流 关键字: 文件
Windows 7 x64 使用phpstudy集成环境
不修改 用phpstudy指向public网址正常运行无错误,但虚拟主机不支持指向目录 故
按照论坛的说法 吧public里面的.htaccess和index.php放到根目录并修改了index.php,但却提示模板不存在 也没用大小写的问题 找不到原因 求助

[0] TemplateNotFoundException in Think.php line 82
模板文件不存在:../template/default/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);
}

附件 上传不了 附上微云链接吧 https://share.weiyun.com/5CMih6Y
最佳答案
评论( 相关
后面还有条评论,点击查看>>