Ejemplo n.º 1
0
 public function indexAction()
 {
     $shoutboxMapper = new ShoutboxMapper();
     $this->getLayout()->getAdminHmenu()->add($this->getTranslator()->trans('menuShoutbox'), array('action' => 'index'));
     if ($this->getRequest()->getPost('action') == 'delete' && $this->getRequest()->getPost('check_entries')) {
         foreach ($this->getRequest()->getPost('check_entries') as $entryId) {
             $shoutboxMapper->delete($entryId);
         }
     }
     $this->getView()->set('shoutbox', $shoutboxMapper->getShoutbox());
 }
Ejemplo n.º 2
0
 public function indexAction()
 {
     $shoutboxMapper = new ShoutboxMapper();
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuShoutbox'), array('action' => 'index'));
     $this->getView()->set('shoutbox', $shoutboxMapper->getShoutbox());
 }