public function deleteAction() { if ($this->getRequest()->isSecure()) { $shoutboxMapper = new ShoutboxMapper(); $shoutboxMapper->delete($this->getRequest()->getParam('id')); $this->addMessage('deleteSuccess'); } $this->redirect(array('action' => 'index')); }
public function indexAction() { $shoutboxMapper = new ShoutboxMapper(); $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuShoutbox'), array('action' => 'index')); $this->getView()->set('shoutbox', $shoutboxMapper->getShoutbox()); }