Re: Return compressed XML

2009-01-04 Thread ace2600
Thanks Adam! Using ob_start("ob_gzhandler"); in my beforeFilter worked great. On Jan 4, 6:41 am, Adam Royle wrote: > If you're sending unique data for each request, I wouldn't bother > using the MediaView. Just output data in your views and set some > custom headers. > > You can also find out ab

Re: Return compressed XML

2009-01-04 Thread Adam Royle
If you're sending unique data for each request, I wouldn't bother using the MediaView. Just output data in your views and set some custom headers. You can also find out about an easier way to gzip output in cakephp here: http://debuggable.com/posts/issues-with-output-buffering-in-cakephp:480f4dd

Return compressed XML

2009-01-03 Thread ace2600
Hi, I want to return unique compressed XML for each user request. Something like this in the controller: public function download() { $filename = 'some_temporary_file_name.gz'; $this->view = 'Media'; $params = array( 'id' => $filename, 'name' => 'some_temp