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