Home >PHP Framework >YII >How to modify the yii2 logo

How to modify the yii2 logo

藏色散人
藏色散人Original
2020-07-20 09:51:092600browse

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.

How to modify the yii2 logo

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!

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