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