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