How to set default controller in Yii

后端 未结 3 1485
无人及你
无人及你 2021-02-20 15:36

Is there a way to specify a default controller in Yii? Instead of using the SiteController? Thank you in advance.

3条回答
  •  后悔当初
    2021-02-20 16:15

    try to add the configuration in the config main.php

    'defaultController' => 'newcontrollername',
    

    after 'name' setting.

提交回复
热议问题