title: popover and yii2
body: <p>Не могу создать popover d yii2</p>
  
  <p>Кнопка ничего не делает</p>
  
  <p>I cant create popover in yii2.</p>
  
  <p>Button doesn't do anything</p>
  
  <p>JS</p>
  
  <pre><code>$(function () {
    $('[data-toggle="popover"]').popover()
  })
  </code></pre>
  
  <p>Connect JS</p>
  
  <blockquote>
    <p>$this->registerJsFile('/assets/js/popover.js',  ['position' =>
    yii\web\View::POS_END]);</p>
  </blockquote>
  
  <p>PHP/HTML</p>
  
  <pre><code>&lt;button type="button" class="btn btn-lg btn-danger"
  data-toggle="popover" title="Popover title" data-content="Popover Here"&gt;
  Click to toggle popover
  &lt;/button&gt;
  </code></pre>
  
  <p><strong>Reslove</strong></p>
  
  <p>Thanks dev.mraj</p>
  
  <blockquote>
    <p>$this->registerJsFile('/js/boot/bootstrap.js',['position' => yii\web\View::POS_END,'depends'=>['yii\web\JqueryAsset']]);</p>
  </blockquote>
  
  <p>When create List need use </p>
  
  <pre><code> $('#test_div').html(options).find('[data-toggle="popover"]').popover();
  </code></pre>