修正视图驱动

This commit is contained in:
thinkphp
2016-05-20 12:01:38 +08:00
parent 952d18af17
commit 685d7ef3b7
2 changed files with 5 additions and 3 deletions

View File

@@ -56,7 +56,8 @@ class Php
public function fetch($template, $data = [])
{
// 模板不存在 抛出异常
if (!$this->exists($template)) {
$template = $this->exists($template);
if (!$template) {
throw new Exception('template file not exists:' . $template, 10700);
}
// 记录视图信息