title: Yii2 - How to include external js and css in view file
body: <p>I am trying to include my plugins and custom js files in </p>
  
  <blockquote>
    <p>frontend/views/layouts/main.php</p>
  </blockquote>
  
  <p>So I used this code for js and css</p>
  
  <pre><code>&lt;link rel="stylesheet" href="&lt;?= Yii::$app-&gt;homeUrl; ?&gt;chosen/chosen.css"&gt;
  &lt;script type="text/javascript" src="&lt;?= Yii::$app-&gt;homeUrl; ?&gt;js/jquery.fancybox.pack.js?v=2.1.5"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>but its not working. So what should I include to get my js and css files in view file?</p>