Answers for "dropdown in crud application YII"

PHP
0

dropdown in crud application YII

<?php $list = CHtml::listData(Country::model()->findAll(), 
     'id', 'name'); ?>
<?php echo $form->dropDownList($model, 'country_id', $list,
     array('empty'=>'(Select a Country)')); ?>
Posted by: Guest on December-23-2020

Browse Popular Code Answers by Language