Thanks to everyone, your responses where invaluble!
This is what I ended up using:
public function execute($request)
{
$manager=new ReportManager();
$response=$this->getResponse();
$response->setContentType("text/csv");
$response->setHttpHeader('Content-Disposition', 'attachment;
filename=report.csv');
$response->setContent($manager->getReport());
$response->sendHttpHeaders();
$response->sendContent();
return SfView::NONE;
}
Works beautifuly.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---