Home >PHP Framework >YII >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:
(Related tutorial recommendation: yii framework)
Method 2: Add layout to a controller, As shown in the picture:
#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!