Exemplo n.º 1
0
 /**
  * Deletes an existing comment
  *
  * @param Tx_BlogExample_Domain_Model_Post $post The post the comment is related to
  * @param Tx_BlogExample_Domain_Model_Comment $comment The comment to be deleted
  * @return void
  */
 public function deleteAction(Tx_BlogExample_Domain_Model_Post $post, Tx_BlogExample_Domain_Model_Comment $comment)
 {
     // TODO access protection
     $post->removeComment($comment);
     $this->addFlashMessage('deleted', t3lib_FlashMessage::INFO);
     $this->redirect('show', 'Post', NULL, array('post' => $post));
 }