默认路由

  • yii怎么设置默认路由?

    修改配置文件: return [ ‘name’=>’AA后台’, ‘id’ => ‘app-backend’, ‘defaultRoute’=>’shop/index’,//路由 ……]; 127.0.0.1/index.php会自动跳转到shop/index. web.php文件…

    2025年11月19日
    000
关注微信