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