public function actionAdmin() { $model = new ColoresVehiculos('search'); $model->unsetAttributes(); if (isset($_GET['ColoresVehiculos'])) { $model->setAttributes($_GET['ColoresVehiculos']); } $this->render('admin', array('model' => $model)); }