I usually put this at the end of my controller actions:

$this->header('Content-Type: text/xml');

On Jun 14, 10:26 am, Peter <peterdun...@gmail.com> wrote:
> how can i change the content-type of a view? i have an xml-view which
> renders just fine, but my browser sees it as text/html.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to