Пример #1
0
 public function indexAction()
 {
     $this->getLayout()->getAdminHmenu()->add($this->getTranslator()->trans('menuLinkus'), array('action' => 'index'));
     $linkusMapper = new LinkusMapper();
     if ($this->getRequest()->getPost('check_linkus')) {
         if ($this->getRequest()->getPost('action') == 'delete') {
             foreach ($this->getRequest()->getPost('check_linkus') as $linkusId) {
                 $linkusMapper->delete($linkusId);
             }
         }
     }
     $this->getView()->set('linkus', $linkusMapper->getLinkus());
 }
Пример #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());
 }