コード例 #1
0
ファイル: Index.php プロジェクト: prepare4battle/Ilch-2.0
 public function deleteAction()
 {
     if ($this->getRequest()->isSecure()) {
         $commentMapper = new CommentMapper();
         $commentMapper->delete($this->getRequest()->getParam('id'));
     }
     $this->redirect(array('action' => 'index'));
 }
コード例 #2
0
ファイル: Show.php プロジェクト: prepare4battle/Ilch-2.0
 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')));
 }