Home >PHP Framework >YII >How to modify the default style in yii2

How to modify the default style in yii2

王林
王林Original
2020-02-26 17:14:003212browse

How to modify the default style in yii2

Method 1: First create a layout, such as zhu.php, and then add the layout in frontend/config/main.php. As shown in the picture:

How to modify the default style in yii2

(Related tutorial recommendation: yii framework)

Method 2: Add layout to a controller, As shown in the picture:

How to modify the default style in yii2

#For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!

The above is the detailed content of How to modify the default style in yii2. 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