示例#1
0
 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)));
 }
示例#2
0
 public function delAction()
 {
     if ($this->getRequest()->isSecure()) {
         $privacyMapper = new PrivacyMapper();
         $privacyMapper->delete($this->getRequest()->getParam('id'));
         $this->addMessage('deleteSuccess');
     }
     $this->redirect(array('action' => 'index'));
 }