Home > PHP Framework > YII > body text

How to modify the yii2 logo

藏色散人
Release: 2020-07-20 09:51:09
Original
2561 people have browsed it

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'
        ]
    ]);
Copy after login

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!

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