YII2.0 怎么设置默认路由 (已解决) [ 2.0 版本 ]

YII2.0 怎么设置默认路由 在web.php $config数组增加了下面这行 'defaulRoute' => 'index', 执行的时候报错Setting unknown property: yii\web\Application::defaulRoute

已经解决: 'defaultRoute'=>'index',

参考文献:

https://www.yiichina.com/question/682

猜你喜欢

转载自blog.csdn.net/weixin_41282397/article/details/83241428