Beispiel #1
0
 public function delAction()
 {
     if ($this->getRequest()->isSecure()) {
         $linkusMapper = new LinkusMapper();
         $linkusMapper->delete($this->getRequest()->getParam('id'));
         $this->addMessage('deleteSuccess');
     }
     $this->redirect(array('action' => 'index'));
 }
Beispiel #2
0
 public function indexAction()
 {
     $linkusMapper = new LinkusMapper();
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuLinkus'), array('action' => 'index'));
     $this->getView()->set('linkus', $linkusMapper->getLinkus());
 }