public function addAclAction() { $form = new RsvAcl_Form_FrmAcl(); $this->view->form = $form; if ($this->getRequest()->isPost()) { $db = new RsvAcl_Model_DbTable_DbAcl(); $post = $this->getRequest()->getPost(); $id = $db->insertAcl($post); $tr = Application_Form_FrmLanguages::getCurrentlanguage(); // Application_Form_FrmMessage::message($tr->translate('ROW_AFFECTED')); // Application_Form_FrmMessage::redirector('/rsvAcl/acl/index'); } }
public function addAction() { $form = new RsvAcl_Form_FrmAcl(); $this->view->form = $form; if ($this->getRequest()->isPost()) { $db = new RsvAcl_Model_DbTable_DbAcl(); $post = $this->getRequest()->getPost(); // if(!$db->isActionExist($post['action'])){ $id = $db->insertAcl($post); //write log file $userLog = new Application_Model_Log(); $userLog->writeUserLog($id); //End write log file Application_Form_FrmMessage::message('INSERT_SUCCESS'); // Application_Form_FrmMessage::redirector('/rsvAcl/acl/index'); // }else { // Application_Form_FrmMessage::message('Action had existed already'); // } } }