'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 in yii

angryTom
angryTomOriginal
2020-03-13 18:00:062921browse

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

How to specify the running path in yii

##backend


Recommended learning:

Website construction tutorial

How to specify the running path in yii

Can be modified in line 28 of /vendor/yiisoft/yii2/web/Application.php:

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

How to specify the running path in yii

frontend


How to specify the running path in yii

After modification, you can enter the page you want to enter.


(Related tutorial recommendations:

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!

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
Previous article:How to use yii filterNext article:How to use yii filter