修正空控制器名称和关键字冲突的问题

空控制器默认改为 Error 并且可以自定义 通过修改 empty_controller 参数
This commit is contained in:
thinkphp
2015-09-26 21:52:03 +08:00
parent 5c00b163ae
commit 9dcfeefb1f
4 changed files with 8 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ return [
'default_module' => 'index', // 默认模块名
'default_controller' => 'index', // 默认控制器名
'default_action' => 'index', // 默认操作名
'empty_controller' => 'error', // 默认的空控制器名
'action_suffix' => '', // 操作方法后缀
'url_model' => 1, // URL模式
'url_request_uri' => 'REQUEST_URI', // 获取当前页面地址的系统变量 默认为REQUEST_URI