title: YII2 login asset CSS not loaded
body: <p>I created Login Asset and Login Layout. Why is it that the login page does not load the css files?</p>
  
  <pre><code>class LoginAsset extends AssetBundle {
  
  public $basePath = '@webroot';
  public $baseUrl = '@web';
  public $css = [
      'gent/css/bootstrap.min.css',
      'gent/css/font-awesome.min.css',
      'gent/css/nprogress.css',
      'gent/css/animate.min.css',
      'gent/css/custom.min.css"',
  ];
  public $js = [
  ];
  public $depends = [
      'yii\web\YiiAsset',
      'yii\bootstrap\BootstrapAsset',
  ];
  
  }
  </code></pre>
  
  <hr>
  
  <pre><code>public function actionLogin() {
      $this-&gt;layout = 'login';
      return $this-&gt;render('login', [
                  'model' =&gt; $model,
      ]);
  }
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;?php
  
  /**
   * @var string $content
   * @var \yii\web\View $this
   */
  use app\assets\LoginAsset;
  use yii\helpers\Html;
  
  LoginAsset::register($this);
  ?&gt;
  &lt;?php $this-&gt;beginPage(); ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html lang="&lt;?= Yii::$app-&gt;language ?&gt;"&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
          &lt;meta charset="&lt;?= Yii::$app-&gt;charset ?&gt;" /&gt;
          &lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1" /&gt;
          &lt;?= Html::csrfMetaTags() ?&gt;
          &lt;title&gt;QAMETWIS&lt;/title&gt;
          &lt;?php $this-&gt;head() ?&gt;
  
      &lt;/head&gt;
      &lt;body class="login"&gt;
          &lt;?php echo $content ?&gt;
      &lt;/body&gt;
  
  
  &lt;/html&gt;
  &lt;?php $this-&gt;endPage(); ?&gt;
  </code></pre>
  
  <p>Here is the login page.</p>
  
  <p><a href="https://i.stack.imgur.com/Lu0Kz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lu0Kz.png" alt="enter image description here"></a></p>