/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'view' page. */ public function actionCreate() { $model = new TipoCausa(); $model->nombre = $_POST['nombreTipoCausa']; $model->save(); $this->redirect(array('default/index')); }