title: Using forms and checkboxlists in Yii
body: <p>Am trying to wrap my head around using checkboxlists in the yii framework.</p>
  
  <p>Example:
  With the dropdownlist I can</p>
  
  <pre><code>&lt;?php echo $form-&gt;dropdownlist($model,'fathercattle',array(1=&gt;Yours,2=&gt;Mine,3=&gt;Nobody)); ?&gt;
  </code></pre>
  
  <p>How do I get a similar effect using the Yii checkboxlists option?The values will be stored and retrieved in a database field as an array?</p>
  
  <p>Secondly how do I get to format it?</p>