예제 #1
0
 public function deleteAction()
 {
     if ($this->getRequest()->isSecure()) {
         $shoutboxMapper = new ShoutboxMapper();
         $shoutboxMapper->delete($this->getRequest()->getParam('id'));
         $this->addMessage('deleteSuccess');
     }
     $this->redirect(array('action' => 'index'));
 }
예제 #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());
 }