Yii2 logo modification method: first find and open the "/layouts/main.php" file; then add the code as "Html::img('/images/logo.png'...)"; Finally save the changes.
Modify yii2 logo
Defined as follows in /layouts/main.php
NavBar::begin([ 'brandLabel' => Html::img('/images/logo.png', [ 'alt' => '莆田市微启点文化传媒有限公司 ' ]), 'brandUrl' => Yii::$app->homeUrl, 'options' => [ 'class' => 'navbar-default navbar-fixed-top' ] ]);
Recommended: "yii tutorial"
The above is the detailed content of How to modify the yii2 logo. For more information, please follow other related articles on the PHP Chinese website!