public function pingAction() { // We encapsulate xmlrpc, disable everything $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); // Get the request $request = Pingback_Utility::getRawPostData(); $this->_logger->log("Received pingback request: {$request}", Zend_Log::DEBUG); // Process the request $server = new Pingback_Server(); $server->execute($request); if ($server->isValid()) { $source = $server->getSourceURL(); $target = $server->getTargetURL(); $this->process($source, $target); } // Log the response $response = $server->getResponse(); $this->_logger->log("Response: {$response}", Zend_Log::DEBUG); // We turn off output buffering to avoid memory issues // when dumping the response ob_end_flush(); print $response; // Die to make sure that we don't screw up the response die; }