
<div> <?php echo $form->dropDownList($model,'country_id', CHtml::listData(Country::model()->findAll(), 'id', 'country_name'), array('empty'=>'Select Country'))?> </div> Or other option <div> <?php echo CHtml::dropDownList('Users[country_id'],'', CHtml::listData(Country::model()->findAll(), 'id', 'country_name'), array('empty'=>'Select Country'))?> </div>
source : http://bbc.co.uk, http://tutorial101.blogspot.com, http://okezone.com
No comments:
Post a Comment