Exemplo n.º 1
0
 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]);
 }