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