mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
改进Route类的自动搜索控制器对访问控制器层自定义的支持
This commit is contained in:
@@ -1152,7 +1152,7 @@ class Route
|
|||||||
$module = Config::get('app_multi_module') ? array_shift($path) : null;
|
$module = Config::get('app_multi_module') ? array_shift($path) : null;
|
||||||
if ($autoSearch) {
|
if ($autoSearch) {
|
||||||
// 自动搜索控制器
|
// 自动搜索控制器
|
||||||
$dir = APP_PATH . ($module ? $module . DS : '') . 'controller';
|
$dir = APP_PATH . ($module ? $module . DS : '') . Config::get('url_controller_layer');
|
||||||
$suffix = App::$suffix || Config::get('controller_suffix') ? ucfirst(Config::get('url_controller_layer')) : '';
|
$suffix = App::$suffix || Config::get('controller_suffix') ? ucfirst(Config::get('url_controller_layer')) : '';
|
||||||
$item = [];
|
$item = [];
|
||||||
foreach ($path as $val) {
|
foreach ($path as $val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user