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