默认路由
-
yii怎么设置默认路由?
修改配置文件: return [ ‘name’=>’AA后台’, ‘id’ => ‘app-backend’, ‘defaultRoute’=>’shop/index’,//路由 ……]; 127.0.0.1/index.php会自动跳转到shop/index. web.php文件…
*本站广告为第三方投放,如发生纠纷,请向本站索取第三方联系方式沟通
修改配置文件: return [ ‘name’=>’AA后台’, ‘id’ => ‘app-backend’, ‘defaultRoute’=>’shop/index’,//路由 ……]; 127.0.0.1/index.php会自动跳转到shop/index. web.php文件…