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