'login/index' (controller/method)" in config->main.php to change the default homepage."/> 'login/index' (controller/method)" in config->main.php to change the default homepage.">
Home >PHP Framework >YII >How to set the default access home page in yii
The method for yii to set the default access to the homepage is as follows:
Add
'defaultRoute' => ' in config->main.php login/index' //Controller/Method
Recommended: yii usage tutorial
The above is the detailed content of How to set the default access home page in yii. For more information, please follow other related articles on the PHP Chinese website!