/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'view' page. */ public function actionCreate() { // descripcionProceso idCuestionarioGrupoPreguntas nombreGrupoPreguntas // id_grupo_preguntas serial NOT NULL, // nombre character varying(255) NOT NULL, // descripcion character varying(255), // id_cuestionario integer NOT NULL, $model = new GrupoPreguntas(); $model->nombre = $_POST['nombreGrupoPreguntas']; $model->descripcion = $_POST['descripcionProceso']; $model->id_cuestionario = $_POST['idCuestionarioGrupoPreguntas']; $model->save(); $this->redirect(array('default/index')); }