title: Select or Dropdown list from CActiveRecord in Yii
body: <p>I have table <code>types</code> and i want to build <code>selectbox</code> with all values from this table
  In my controller i wrote this code</p>
  
  <pre><code>$allRegistrationTypes = RegistrationType::model()-&gt;findAll();
  $this-&gt;render('index', array('allRegistrationTypes' =&gt; $allRegistrationTypes))
  </code></pre>
  
  <p>How build selectbox in view file ?</p>