mirocow\eav\admin\controllers\AttributeController::actionUpdate PHP Method

actionUpdate() public method

If update is successful, the browser will be redirected to the 'view' page.
public actionUpdate ( integer $id ) : mixed
$id integer
return mixed
    public function actionUpdate($id)
    {
        $model = $this->findModel($id);
        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['view', 'id' => $model->id]);
        } else {
            return $this->render('update', ['model' => $model]);
        }
    }