title: Asset for multiple views in Yii2
body: <p>So i am into the challenge of in passing the asset for a number of different views.</p>
  
  <p>As far as I am concerned, there are some ways, apart from adding</p>
  
  <pre><code>use app\assets\SomeAsset;
  SomeAsset::register($this);
  </code></pre>
  
  <p>to the layout page or calling out <a href="https://stackoverflow.com/questions/33656068/register-an-asset-in-yii2-for-all-views-in-a-module">this</a> method.</p>
  
  <p>Although, I am interested, are there any <em>more</em> flexible ways of passing an asset or a group of assets to the whole crud model at once, for example.</p>