/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
From a table A <?php echo CHtml::activeDropDownList($model, 'departmentId', CHtml::listData( Department::model()->findAll(), 'id', 'name' ) ); ?> B <?php echo $form->dropDownList($model,'status',Lookup::items('PostStatus')); ?> Application interface values