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); }
public function delAction() { if ($this->getRequest()->isSecure()) { $ruleMapper = new RuleMapper(); $ruleMapper->delete($this->getRequest()->getParam('id')); $this->addMessage('deleteSuccess'); } $this->redirect(array('action' => 'index')); }