public function actionListSpecialty() { $model = new Specialty('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Specialty'])) { $model->attributes = $_GET['Specialty']; } $this->render('listSpecialty', array('model' => $model)); }