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