/** * Manages all models. */ public function actionIndex() { $model = new SemesterSubject('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['SemesterSubject'])) { $model->attributes = $_GET['SemesterSubject']; } $this->render('admin', array('model' => $model)); }