title: Create sidebar in yii framework
body: <p>how to create dynamic sidebar in yii framework:</p>
  
  <pre><code>&lt;?php $this-&gt;beginContent('//layouts/main'); ?&gt;
  &lt;div id="content"&gt;
      &lt;?php echo $content; ?&gt;
  &lt;/div&gt;&lt;!-- content --&gt;
  &lt;?php $this-&gt;endContent(); ?&gt;
  </code></pre>
  
  <p>look like:</p>
  
  <pre><code>&lt;?php $this-&gt;beginContent('//layouts/main'); ?&gt;
  &lt;div id="content"&gt;
      &lt;?php echo $content; ?&gt;
      &lt;div id="sidebar"&gt;
          &lt;?php echo $sidebar; ?&gt;
      &lt;/div&gt;
  &lt;/div&gt;&lt;!-- content --&gt;
  &lt;?php $this-&gt;endContent(); ?&gt;
  </code></pre>