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