title: Create Html Table Using YII Framework
body: <p>I am just new to YII framework and know very basics of YII like CRUD etc.
  I just want to create HTML Tables using YII. Following is mine VIEW code where I rendered an array <code>$results</code> and it contains all records that I want to be shown using HTML Table</p>
  
  <pre><code>    &lt;?php
  /* @var $this RrCimyUefDataController */
  /* @var $model RrCimyUefData */
  
  $this-&gt;breadcrumbs=array(
      'Rr Cimy Uef Datas'=&gt;array('index'),
      'Create',
  
  );
  ?&gt;
  &lt;table&gt;
  &lt;tr&gt;
    &lt;th&gt;Serial Number&lt;/th&gt;
    &lt;th&gt;Business Name&lt;/th&gt;
    &lt;th&gt;Facebook&lt;/th&gt;
    &lt;th&gt;Twitter&lt;/th&gt;
  &lt;/tr&gt;
  
  
  &lt;?php
  for($a=0, $b=1;$a&lt;count($results);$a=$a+3,$b++){
      if(($a+1)&lt;count($results) &amp;&amp; ($a+2)&lt;count($results)){
  echo '&lt;tr&gt;&lt;td&gt;'.$b.'&lt;/td&gt;';
  echo '&lt;td&gt;'.$results[$a].'&lt;/td&gt;';
  echo '&lt;td&gt;'.$results[$a+1].'&lt;/td&gt;';
  echo '&lt;td&gt;'.$results[$a+2].'&lt;/td&gt;&lt;/tr&gt;';
  }
  }
  //var_dump($results);
  ?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The code is working fine but it is not done through proper YII methods.
  Thank you in advance.</p>