public function actionUpdate($id) { if (request()->isPost) { if ($this->enum->load(request()->post()) && $this->enum->save()) { return $this->refresh(); } } return $this->render('update', ['model' => $this->enum]); }
public function actionUpdate($id) { if (request()->isPost) { if ($this->enum->load(request()->post()) && $this->enum->save()) { return $this->refresh(); } } return $this->render('update', ['model' => $this->enum]); }