我有一个管理面板: -
/管理/控制器/动作
在路由规则中,我有一个admin前缀: -
<system.web>
<healthMonitoring>
<rules>
<!-- Make sure all errors are logged to the EventLogProvider ("Default" profile only allows 1 error per minute) -->
<remove name="All Errors Default" />
<add name="All Errors Default" eventName="All Errors" profile="Critical" provider="EventLogProvider" />
</rules>
</healthMonitoring>
</system.web>
如何重命名&#34; admin&#34;前缀为&#34; admin-56&#34;没有重命名文件夹和命名空间?
答案 0 :(得分:1)
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');
});