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()); }
public function indexAction() { $shoutboxMapper = new ShoutboxMapper(); $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuShoutbox'), array('action' => 'index')); $this->getView()->set('shoutbox', $shoutboxMapper->getShoutbox()); }