Hi!

I have a controller with the RequestHandler component attached, and a
method called by ajax. Now I want to return pure JSON and to do that I
need to set the response header content-type to "application/json".
The problem is that the RequestHandler automaticly sets this response
header so by the time I get control in my controller, $this-
>RequestHandler->respondAs("json") doesn't have any affect.

What can I do to make this work properly? The dirty hack now is by
using a header() call in the view but I don't think this is the way to
do it.

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to