'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

How to set the default access home page in yii

尚
Original
2019-12-07 10:52:184215browse

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

How to set the default access home page in yii

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn