PHP完全自学手册(珍藏版) 中文pdf扫描版下载
echo $form->dropDownList($moveAssign,'department',CHtml::listData(ModelName::model()->findAll(array('condition'=>'enable=:enable','params'=>array('enable'=>'1'))),'department_id','department_title'),array('empty'=>'Select Department','ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('tickets/staffsList'),
'update'=>'#staff')));
echo $form->dropDownList($model,'staff',array(),array('id'=>'staff'));
转载请注明:谷谷点程序 » dropdownList Yii ajax