I think that if you specify the format in the routing parameter :
csv_export:
url: /toto.csv
param: { module: foo, action: bar, sf_format: csv }
Symfony will automatically remove the layout and the web debug.
On Dec 15, 7:33 am, juro fo...@juro.at wrote:
Thank you to the both of you -
On Mon, Dec 15, 2008 at 6:37 AM, juro fo...@juro.at wrote:
In a module, I have a function/view that builds a csv, which I want to
take out of the routings normal behaviour, i.e. I don't want .html
to be added to resulting filename.
How can I set the sf_format for one module's function only?
Hi Nicolas,
thank you, that worked.
How can I configure Symfony not to include the layout.php?
juro
On Dec 15, 7:43 am, Nicolas Perriault nperria...@gmail.com wrote:
On Mon, Dec 15, 2008 at 6:37 AM, juro fo...@juro.at wrote:
In a module, I have a function/view that builds a csv, which I
in your action:
$this-setLayout(false);
Youll probably also want to modify the response headers to the proper
mime type though.
Take a look at the book and the API.
juro wrote:
Hi Nicolas,
thank you, that worked.
How can I configure Symfony not to include the layout.php?
juro
On
Thank you to the both of you - works fine.
Ant, I already add the header in the template.
On Dec 15, 8:24 am, Ant Cunningham prodigital...@vectrbas-d.com
wrote:
in your action:
$this-setLayout(false);
Youll probably also want to modify the response headers to the proper
mime type