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