From db04a9c4e5c16903e4e127547dde9e1885cf2dbe Mon Sep 17 00:00:00 2001 From: molong Date: Thu, 5 Sep 2019 10:51:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + app/middleware.php | 2 +- config/app.php | 4 +--- config/template.php | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index d465120e..0f905aab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.idea /.vscode /vendor +/bak *.log .env \ No newline at end of file diff --git a/app/middleware.php b/app/middleware.php index 83bed6dd..20cc79a4 100644 --- a/app/middleware.php +++ b/app/middleware.php @@ -1,5 +1,5 @@ 'Asia/Shanghai', // 异常页面的模板文件 - // 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl', - 'exception_tmpl' => app()->getRootPath() . 'view/error.tpl', - // 'exception_tmpl' => app()->getAppPath() . 'view/exception.html', + 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl', // 错误显示信息,非调试模式有效 'error_message' => '页面错误!请稍后再试~', diff --git a/config/template.php b/config/template.php index 56c70710..51a42117 100644 --- a/config/template.php +++ b/config/template.php @@ -16,7 +16,6 @@ return [ 'view_suffix' => 'html', // 模板文件名分隔符 'view_depr' => DIRECTORY_SEPARATOR, - 'tpl_cache' => false, // 是否开启模板编译缓存,设为false则每次都会重新编译 // 模板引擎普通标签开始标记 'tpl_begin' => '{', // 模板引擎普通标签结束标记