Hi Mark,

You can use the method sfAction::renderText() to render a given string
bypassing the normal view layer. As others pointed out above, use the
methods in sfResponse to change the content type.

 public function execute($request)
 {
   $manager=new ReportManager();
   $this->getResponse()->setContentType('text/csv');

   return $this->renderText($manager->getReport());
 }


Bernhard

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to