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