Esempio n. 1
0
 public function indexAction()
 {
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuRules'), array('action' => 'index'));
     $ruleMapper = new RuleMapper();
     $rules = $ruleMapper->getEntries();
     $this->getView()->set('rules', $rules);
 }
Esempio n. 2
0
 public function delAction()
 {
     if ($this->getRequest()->isSecure()) {
         $ruleMapper = new RuleMapper();
         $ruleMapper->delete($this->getRequest()->getParam('id'));
         $this->addMessage('deleteSuccess');
     }
     $this->redirect(array('action' => 'index'));
 }