public function updateLU() { try { $model = new LU($this->data->lu->idLU); $model->setData($this->data->lu); $model->save(); $this->renderPrompt('information', 'OK'); } catch (\Exception $e) { $this->renderPrompt('error', $e->getMessage()); } }