title: Default select one item in the dropDownList Yii
body: <p>I have a dynamic dropdown, data coming from the database.</p>
  
  <pre><code> &lt;?php $sel_id = $selected_id_array[0]-&gt;UPR_RelationType;?&gt;
  </code></pre>
  
  <p>My dropdowm looks like this</p>
  
  <pre><code> &lt;?php echo    CHtml::dropDownList('RelationType_'.$pat_id[0]-&gt;PAT_ID,'U2U_RelationType',CHtml::listData(MasterTypeItems::model()-&gt;findAllByAttributes(array('MSTT_MST_ID'=&gt;$relationship_type_array[0]-&gt;MST_ID),array('order' =&gt; 'MSTT_Name')), 'MSTT_ID', 'MSTT_Name'),array('id'=&gt;'select','class'=&gt;'relation_type','style'=&gt;'width:50px'));
  </code></pre>
  
  <p>In this dropdown i have to select defaultly <code>$sel_id;</code></p>
  
  <p>for example am getting <code>$sel_id=5;</code> In the drop down i have to select 5th option as selected in yii. please give me any suggestion what i have to write in dropDown to select <code>$sel_id</code>;</p>