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