TP5.0.14 模板文件不存在

浏览:3202 发布日期:2018/02/07 分类:求助交流 关键字: thinkphp5 模版
模板文件不存在:
}
$template = realpath($path . $template . '.' . ltrim($this->config['view_suffix'], '.'));
}
echo '11';
if (is_file($template)) {
// 记录模板文件的更新时间
$this->includeFile[$template] = filemtime($template);
return $template;
} else {
throw new TemplateNotFoundException('template not exists:' . $template, $template);
}
}

/**
* 按标签生成正则
* @access private
* @param string $tagName 标签名
* @return string
*/
Call Stack
in Template.php line 1084
at Template->parseTemplateFile(false) in Template.php line 332
at Template->compiler('<!DOCTYPE html> <ht...', 'D:\phpStudy\WWW\weix...') in Template.php line 192
at Template->fetch('D:\phpStudy\WWW\weix...', [], []) in Think.php line 84
at Think->fetch('D:\phpStudy\WWW\weix...', [], []) in View.php line 163
at View->fetch('', [], ['__ROOT__' => '/weixin/public', '__URL__' => '/weixin/public/index...', '__STATIC__' => '/weixin/public/stati...', ...], []) in Controller.php line 120
at Controller->fetch() in Index.php line 8
at Index->index()
at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
at App::invokeMethod([object(Index), 'index'], []) in App.php line 595
at App::module(['app_extend', 'miaosha.index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
at App::exec(['type' => 'module', 'module' => ['app_extend', 'miaosha.index', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
at App::run() in start.php line 19
at require('D:\phpStudy\WWW\weix...') in index.php line 22


at Template->compiler('<!DOCTYPE html> <ht...', 'D:\phpStudy\WWW\weixin\runtime\temp\a35531e15d1358c3eb9dba99514626dd.php') in Template.php line 192

看这句是已经找到html文件了,但是在temp中没有写成功a35531e15d1358c3eb9dba99514626dd.php文件
最佳答案
评论( 相关
后面还有条评论,点击查看>>