异常类规范 增加异常类 改进Query类的value和column的缓存冲突问题

This commit is contained in:
thinkphp
2016-06-12 16:35:42 +08:00
parent 659900ab91
commit b10635e22e
33 changed files with 236 additions and 79 deletions

View File

@@ -11,7 +11,7 @@
namespace think\view\driver;
use think\Exception;
use think\exception\TemplateNotFoundException;
use think\Log;
use think\Request;
use think\Template;
@@ -72,7 +72,7 @@ class Think
}
// 模板不存在 抛出异常
if (!is_file($template)) {
throw new Exception('template file not exists:' . $template, 10700);
throw new TemplateNotFoundException('template file not exists:' . $template);
}
// 记录视图信息
APP_DEBUG && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');