public function indexAction() { $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuPrivacy'), array('action' => 'index')); $privacyMapper = new PrivacyMapper(); $this->getView()->set('privacy', $privacyMapper->getPrivacy()); $this->getView()->set('privacyShow', $privacyMapper->getPrivacy(array('show' => 1))); }
public function delAction() { if ($this->getRequest()->isSecure()) { $privacyMapper = new PrivacyMapper(); $privacyMapper->delete($this->getRequest()->getParam('id')); $this->addMessage('deleteSuccess'); } $this->redirect(array('action' => 'index')); }