public function showAction()
 {
     $comment_mapper = new Application_Model_CommentMapper();
     $comment = $comment_mapper->find($this->_getParam('id'));
     $comment->hide = 0;
     $comment_mapper->save($comment);
     return $this->_response->setRedirect('/admin/entry/list');
 }
示例#2
0
 public function showAction()
 {
     /****************************************************************
      * Show a single message, and maybe eventually replies to that
      * message I guess (Maybe posts to this actual page, in a meta
      * sort of way).
      */
     $this->view->title = "Single Message";
     $cookie = Application_Model_DbTable_Cookie::getUserCookie();
     $cookieMapper = new Application_Model_CookieMapper();
     $mapper = new Application_Model_CommentMapper();
     $messageId = $this->getRequest()->getParam('id');
     if ($messageId == null) {
         throw new Exception("No Message Specified");
     }
     $message = $mapper->find($messageId);
     $viewUserCookie = $message->getCookieObject();
     $nick = $message->getNick();
     $this->view->userDetails = $viewUserCookie;
     $this->view->message = $message;
 }