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