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' => '{', // 模板引擎普通标签结束标记