dropdown in crud application yii

Solutions on MaxInterview for dropdown in crud application yii by the best coders in the world

showing results for - "dropdown in crud application yii"
Laetitia
14 Jan 2021
1<?php $list = CHtml::listData(Country::model()->findAll(), 
2     'id', 'name'); ?>
3<?php echo $form->dropDownList($model, 'country_id', $list,
4     array('empty'=>'(Select a Country)')); ?>
5