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