PHP学习 yii2.0怎么设置默认控制器2022-06-29学习君阅读(17)赞(0)yii2.0设置默认控制器的方法:1、打开frontend/config/mian.php文件;2、添加内容【'defaultRoute' =>'index'】即可。