title: yii2 framework - error 403 when using images
body: <p>community members! I would like to address to you here with what question: In Yii2 framework to use css styles and js scripts need to ask the so-called resource bundle that the application had the opportunity to use them. What to do with images? I do not understand how to access to use them..</p>
  
  <p>This is what is meant by the resource kit: (This file AppAsset.php)</p>
  
  <pre><code>class AppAsset extends AssetBundle
  {
      public $basePath = '@webroot';
      public $baseUrl = '@web';
      public $css = [
          'css/site.css',
          'css/bootstrap.min.css',
          'css/bootstrap-social-gh-pages/bootstrap-social.css',
          'css/flexslider.css',
          'css/ie10-viewport-bug-workaround.css',
          'css/justified-nav.css',
          'css/font-awesome-4.6.3/css/font-awesome.css',
      ];
      public $js = [
          'scripts/ie-emulation-modes-warning.js',
          'scripts/jquery.flexslider-min.js',
          'scripts/modernizr.js',
          'https://code.jquery.com/jquery.min.js',
          'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'
      ];
      public $depends = [
          'yii\web\YiiAsset',
          'yii\bootstrap\BootstrapAsset',
      ];
  }
  </code></pre>
  
  <p>so, here it throws 403 error:</p>
  
  <pre><code>&lt;div class="col-lg-2 col-md-2 col-sm-3 col-xs-12"&gt;
      &lt;img src="&lt;?= Yii::$app-&gt;request-&gt;baseUrl ?&gt;/img/logo2.png" style="width: 100%;"&gt;   
  &lt;/div&gt;
  </code></pre>