title: Using Yii2 Bootstrap widgets with Smarty
body: <p>I've installed Yii2 together with Smarty for my views.</p>
  
  <p>Smarty itself is working, but I can't figure out how to use the bootstrap widgets with smarty, nor find any examples.</p>
  
  <p>With the default Yii renderer the widgets work great, and lots of examples are available. But when using Smarty templates documentation is nearly non existing.</p>
  
  <p>How would I define this example with Smarty ?</p>
  
  <pre><code>echo Alert::widget([
     'options' =&gt; [
        'class' =&gt; 'alert-info',
     ],
     'body' =&gt; 'Alert widget',
  ]);
  </code></pre>
  
  <p>Obviously the first thing would be</p>
  
  <pre><code>{use class="yii\bootstrap\Alert"}
  </code></pre>
  
  <p>But I can't find an example of how to define the widget itself.</p>