How to add site logo to title bar in yii2>

I am using yii2 basic application template. I am also using Admin LTE theme. Now I want the logo of the organization to be displayed on every title page instead of XAMPP logo that is appearing. Similarly I want the logo in the header part of Admin LTE theme along with the organization name.

How to achieve this?

I have never worked with AdminLTE theme, but I assume that by replacing XAMPP logo you mean replacement of a web page icon. You can do it by creating icon file named favicon.ico and placing it to your /web directory.

If you don’t know how to create ICO file, you can find many tutorials and online tools on the net.

Ok Thanks for reference

  1. Edit file main.php which reside in /views/layouts
  2. Add this code :
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="img/filename.extension">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
  1. Move image to /web/img folder
  2. Refresh and reload page