cakephp 3如何重命名;行政";“的前缀”;行政-56“;没有重命名文件夹和命名空间?

cakephp 3如何重命名;行政";“的前缀”;行政-56“;没有重命名文件夹和命名空间?,cakephp,routing,cakephp-3.0,prefix,Cakephp,Routing,Cakephp 3.0,Prefix,我有一个管理小组:- /管理员/控制员/行动 在路由规则中,我有一个admin前缀:- Router::prefix('admin', function ($routes) { // All routes here will be prefixed with `/admin` // And have the prefix => admin route element added. $routes->fallbacks('DashedRoute'); });

我有一个管理小组:-

/管理员/控制员/行动

在路由规则中,我有一个admin前缀:-

Router::prefix('admin', function ($routes) {
    // All routes here will be prefixed with `/admin`
    // And have the prefix => admin route element added.
    $routes->fallbacks('DashedRoute');
});
如何在不重命名文件夹和命名空间的情况下将“admin”前缀重命名为“admin-56”

Router::scope('/admin-56', ['prefix' => 'admin'], function($routes) {
    // All routes here will be prefixed with `/admin-56`
    // And have the prefix => admin route element added.
    $routes->fallbacks('DashedRoute');
});