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