public function readinappAction() { $data = array(); if ($device_uid = $this->getRequest()->getParam('device_uid') and $device_type = $this->getRequest()->getParam('device_type')) { $message = new Push_Model_Message(); $message->markInAppAsRead($this->getApplication()->getId(), $device_uid, $device_type); $data = array("message" => "Success."); } $this->_sendHtml($data); }