Hi all,
I’m trying to populate values to a dropdown list. The value is taken from a table. Using the code below, I can only get 1 value from the table although there should be several values that should be displaying.
echo $form->dropDownList($model,‘vendbus’, CHtml::listData(padcd::model()->findAll(‘reftyp =:business’,array(’:business’ => ‘business’)), ‘reftyp’,‘refval’), array(‘empty’=>‘select Type’)); ?>
Thanks in advance