public function actionSpecialitys($idFacultet, $idEducationForm, $QualificationID) { // $data = Specialities::model()->findAll('FacultetID=:FacultetID', // array(':FacultetID'=>(int) $idFacultet)); // // $data=CHtml::listData($data,'idSpeciality','SpecialityName'); // echo CHtml::tag('option', array('value'=>""), "", true); $data = Specialities::DropDownMask1($idFacultet, $idEducationForm, $QualificationID); echo CHtml::tag('option', array('value' => ""), "", true); foreach ($data as $value => $name) { echo CHtml::tag('option', array('value' => $value), CHtml::encode($name), true); } }