public function editAction() { if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); $db = new Menu_Model_DbTable_DbMenuGroup(); try { if (isset($data['tbnupdate'])) { $db->updateMenuGroup($data); Application_Form_FrmMessage::Sucessfull('កាកែរប្រែបានជោគជ័យ', self::REDIRECT_URL . '/index'); } } catch (Exception $e) { Application_Form_FrmMessage::message("កាកែរប្រែមិនបានជោគជ័យ"); $err = $e->getMessage(); Application_Model_DbTable_DbUserLog::writeMessageError($err); } } $id = $this->getRequest()->getParam("id"); $db_combo_type = new Menu_Model_DbTable_DbMenuGroup(); $row = $db_combo_type->editAllRowGroup($id); $this->view->rows = $row; $frm = new Menu_Form_FrmMenuGroup(); $this->view->form = $frm->FrmMenu($row); }
public function addAction() { $frm = new Menu_Form_FrmMenuGroup(); $this->view->form = $frm->FrmMenu(); }