/ Published in: PHP
The following example below shows how to make FirePHP get the header info it needs without using the FrontController.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// create the logger and log writer $writer = new Zend_Log_Writer_Firebug(); $logger = new Zend_Log($writer); // get the wildfire channel $channel = Zend_Wildfire_Channel_HttpHeaders::getInstance(); // create and set the HTTP response $response = new Zend_Controller_Response_Http(); $channel->setResponse($response); // create and set the HTTP request $channel->setRequest(new Zend_Controller_Request_Http()); // record log messages $logger->info('info message'); $logger->warn('warning message'); $logger->err('error message'); // insert the wildfire headers into the HTTP response // send the HTTP response headers $response->sendHeaders();
URL: http://stackoverflow.com/questions/3507165/firephp-doesnt-always-write-log-messages