public function actionCreate() { try { $model = new ProMasterFloorType('create'); if (isset($_POST['ProMasterFloorType'])) { $model->attributes = $_POST['ProMasterFloorType']; if ($model->save()) { $this->redirect(array('index')); } } $this->render('create', array('model' => $model, 'actions' => $this->listActionsCanAccess)); } catch (exception $e) { Yii::log("Exception " . print_r($e, true), 'error'); throw new CHttpException("Exception " . print_r($e->getMessage(), true)); } }