Issue Type: Improvement Created: 2008-09-03T22:55:42.000+0000 Last Updated: 2012-11-20T20:53:07.000+0000 Status: Closed Fix version(s): Reporter: Christoph Dorn (cadorn) Assignee: None Tags: - Zend_Wildfire
Related issues: Attachments:
In some cases it is useful to log to Firebug after the front controller has finished dispatching.
This should be possible by buffering the output, logging the usual way and then flushing the headers again with:
<pre class="highlight"> Zend_Wildfire_Channel_HttpHeaders::getInstance()->flush(); Zend_Controller_Front::getInstance()->getResponse()->sendHeaders();
At the moment this does not work as the Wildfire Protocol Message Index gets reset after the flush causing a previously sent header to be over-written.
The index needs to be kept for the entire duration of the page request.
Posted by Christoph Dorn (cadorn) on 2008-09-04T08:35:21.000+0000
Maybe we could add a method to the Front Controller and Response class to delay sending of headers until shutdown. This would start output buffering and register a shutdown function.
We would also need the ability to add a listener to the sendHeaders() method in the Response class. The same listener may be required for ZF-4134.
Posted by Rob Allen (rob) on 2012-11-20T20:53:07.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.
Have you found an issue?
See the Overview section for more details.