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