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

How to modify the default style in yii2

王林
Release: 2020-02-26 17:14:00
Original
3192 people have browsed it

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!

Related labels:
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