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