[symfony-users] Re: Adding custom :sf_format - incorrect headers sent

2010-05-04 Thread Tom Ptacnik
Did you test it in the production environment? .. The debug toolbar isn't added in prod so maybe this is the point? On 30 dub, 14:20, DEE jasond...@gmail.com wrote: 'csv' is not a supported default :sf_format within symfony's core, and this is a contenttype I wanted to serve up from a route

[symfony-users] Re: Adding custom :sf_format - incorrect headers sent

2010-05-04 Thread DEE
Hi Tom- Thanks for the reply. No I did not test in production yet, but will as soon as possible. However, the debug toolbar is supposed to only appear for :sf_format == 'html'; the default. For any other :sf_format supported by symfony's core factories.yml (ie. txt, css, atom, etc...) the debug

[symfony-users] Re: Adding custom :sf_format - incorrect headers sent

2010-04-30 Thread DEE
Adding $this-getResponse()-setContentType('text/csv'); and then later return sfView::NONE; does seem to solve the issue, however, I am still unclear why the ContentType header is not being set properly coming from my app's factories.yml file. On Apr 30, 8:20 am, DEE jasond...@gmail.com wrote: