Thursday, November 3, 2011

Problem with echo in the controllers with CakePHP 2.0.1 and 2.0.2 on NGINX

We have some ajax action in the controller that are supposed to spit out JSON.
They end with:
                echo json_encode($data);
                $this->autoRender = false;

On a Ubuntu Machine (that will be the production machine) with Nginx and php-fpm the echo do no output anything.
We get only the headers in the answer.

Everything works on XAMPP that uses Apache.

Best,
     Chris

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: