koukiya
(Kaoutar Bf)
1
hi,
I have my dropdownlist and i want to get the value selected and execute my query which is in my model
how can i do that??
echo CHtml::dropDownList('nmoffre','', $offre,
array(
'id'=> 'iddrop',
'ajax' => array(
'type'=>'POST',
)));
regards
chleong
(Web Chleong)
2
Try this
<?php
echo $form->dropDownList($model2, 'name', CHtml::listData(
Supplier::model()->findAll(), 'supplier_code', 'supplier_groups_id'),
array('prompt' => 'Select a Department'.
'options' => array("the chosen data" =>array('selected'=>true)),
)
); ?>