public function deleteAction() { if ($this->getRequest()->isSecure()) { $commentMapper = new CommentMapper(); $commentMapper->delete($this->getRequest()->getParam('id')); } $this->redirect(array('action' => 'index')); }
public function delAction() { if ($this->getRequest()->isSecure()) { $commentMapper = new CommentMapper(); $commentMapper->delete($this->getRequest()->getParam('id')); $this->addMessage('deleteSuccess'); } $this->redirect(array('action' => 'event', 'id' => $this->getRequest()->getParam('eventid'))); }