function messageActionAction() { $request = $this->getRequest(); if ('POST' == $request->getMethod()) { $action = $this->post()->get("action"); $id = $this->post()->get("id"); } $action = 1; $id = 1; $messageModel = new messageModel(); $result = $messageModel->frontMessageAction($action, $id); if ($result) { $this->displayJsonUdo(Common_Error::ERROR_SUCCESS); } else { $this->displayJsonUdo(Common_Error::ERROR_FAIL); } }