title: Yii2 full width layout in index.php
body: <p>What is the best practice to make different layouts for pages in Yii2?
  The problem I am facing is that Yii2 layout/main.php code looks like </p>
  
  <pre><code>&lt;div class="container"&gt;
     &lt;?= $content ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Yii2 uses Bootstrap and I need to make full width image only in site/index.php. 
  Basically in the index.php I need to wrap </p>
  
  <pre><code>&lt;?= $this-&gt;render('_search') ?&gt;
  </code></pre>
  
  <p>into <strong>.container-fluid</strong> class. </p>
  
  <p>How can I replace <strong>.container</strong> class to <strong>.container-fluid</strong> class only for index.php page?</p>