title: yii how to use CListView
body: <p>I have the following code and it works but I want to convert this to list view. How can I do this.</p>
  
  <pre><code>foreach ($jobs as $job){
       $this-&gt;widget('zii.widgets.CDetailView', array(
          'data'=&gt;$job,
          'attributes'=&gt;array(
              'JOBNO',
              'PROJID',
              'NAME',
              'SEQ',
              'DATEIN',
              'DATEDONE',
              'STATUS',
              'PCENTDONE',
              'EARNED',
              'VALUE',
              'COMMENTS',
              'SENTBACK',
              'DATEDUE',
              'ORIGTAPES',
              'Timestamp',
          ),
      ));
  
      echo "&lt;hr /&gt;";
  }
  </code></pre>