/** * Manages all models. */ public function actionIndex() { try { $model = new ProPropertyType('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['ProPropertyType'])) { $model->attributes = $_GET['ProPropertyType']; } $this->render('index', array('model' => $model, 'actions' => $this->listActionsCanAccess)); } catch (Exception $e) { Yii::log("Exception " . print_r($e, true), 'error'); throw new CHttpException("Exception " . print_r($e, true)); } }