I have a radio button list having the values, true, false, unknown. I would like to check one of thses depending on a value returned from the db. Can anybody please tell me how to go about this.
<div class="compactRadioGroup"> <?php
// include your model attribute's value on the select parameter
echo CHtml::radioButtonList('choice',$model->choice,array('true'=>'true','false'=>'false','unknown'=>'unknown'), array( 'separator' => " "));
?></div>