On Apr 5, 7:56 pm, Miles J <[email protected]> wrote:
> Its because you are calling $this->render().
>
> I am 99% sure that doesn't return the content, it just triggers cakes
> view rendering process.

It does return the output. So does the View, AFAICT. I believe the
only echoing is done by Dispatcher. Which is a big hint that I was
going about this the wrong way (MVC-wise). I should be passing the
data to a view that in turn outputs the JSON.

http://bakery.cakephp.org/articles/view/generating-automatized-json-as-output

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to