public function flagpostAction() { if ($value_id = $this->getRequest()->getParam('value_id') and $comment_id = $this->getRequest()->getParam('comment_id')) { $application = $this->getApplication(); $comment = new Comment_Model_Comment(); $comment->find($comment_id); if ($comment->getId() and $comment->getValueId() == $value_id) { $comment->setFlag($comment->getFlag() + 1); $comment->save(); $message = $this->_('Your flag has successfully been notified'); $html = array('success' => 1, 'message' => $message); $this->_sendHtml($html); } } }