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