title: Yii dynamic checkbox
body: <p>I have a column in my table named 'availability_option' with type enum('0', '1', '2'). Zero means 'Fixed Price', One means 'Auction', Two means 'Both'.
  I want to generate 2 checkboxes dynamically One for Fixed Price and another 'Auction'.
  How is it possible?
  I didi it static.
  But it should not be the right syntax of yii.</p>
  
  <pre><code>&lt;input value="0" id="fixedprice" type="checkbox" name="ProductShop[availability_option][]"&gt;
  &lt;label for="fixedprice"&gt;Fixed Price&lt;/label&gt;
  &lt;input value="1" id="auctionprice" type="checkbox" name="ProductShop[availability_option][]"&gt;
  &lt;label for="auctionprice"&gt;Auction&lt;/label&gt;
  </code></pre>
  
  <p>I want it dynamically, So how is it possible?Any idea?</p>