/** * Creates a new Formapagamento model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $modelFormapagamento = new Formapagamento(); if ($modelFormapagamento->load(Yii::$app->request->post()) && $modelFormapagamento->save()) { return $this->redirect(['view', 'id' => $modelFormapagamento->idTipoPagamento]); } else { return $this->render('create', ['modelFormapagamento' => $modelFormapagamento]); } }