错误消息:“模板文件不存在:/www/wwwroot/www.wubaiyi.com/public/template/default/article/show/3506.html” 错误代码:“0”
think\template\exception\TemplateNotFoundException /www/wwwroot/www.wubaiyi.com/vendor/topthink/think-view/src/Think.php 行号:146
}
if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
// 获取模板文件名
$template = $this->parseTemplate($template);
}
// 模板不存在 抛出异常
if (!is_file($template)) {
throw new TemplateNotFoundException('template not exists:' . $template, $template);
}
$this->template->fetch($template, $data);
}
/**
* 渲染模板内容
* @access public
* @param string $template 模板内容