Home > PHP Framework > YII > body text

How to specify the running path in yii

angryTom
Release: 2020-03-13 18:00:06
Original
2838 people have browsed it

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';
Copy after login

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!

Related labels:
yii
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template