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