'index',"; and finally reopen the page."/> 'index',"; and finally reopen the page.">
Home >PHP Framework >YII >How to specify the running path in yii
How to specify the running path for yii
After installing the advanced version of the yii framework, enter the backend and frontend and enter the default written by the yii framework. Controller
frontend
public $defaultRoute = 'site';Want to enter the homepage written by yourself Without changing the original code of the Yii framework, you can modify the configuration file under /config/main-local.php and add a line 'defaultRoute' => 'index', backend frontend
yii framework)
The above is the detailed content of How to specify the running path in yii. For more information, please follow other related articles on the PHP Chinese website!