Re: [symfony-users] Symfony2 returning a JSON object

2011-04-26 Thread Fabien Potencier
On 4/24/11 2:57 PM, stickaforkinme wrote: I'm sure this is a really really stupid question but I can't seem to find a clean way to return a JSON object, i.e. by not calling a controller and just returning the result of json_encode. This was easy is Symfony 1.x but I have no idea how to do it in S

Re: [symfony-users] Symfony2 returning a JSON object

2011-04-26 Thread Luis Cordova
check github.com/cordoval/Memorize-Scripture-2 example On Sun, Apr 24, 2011 at 7:57 AM, stickaforkinme wrote: > I'm sure this is a really really stupid question but I can't seem to > find a clean way to return a JSON object, i.e. by not calling a > controller and just returning the result of json

[symfony-users] Symfony2 returning a JSON object

2011-04-25 Thread stickaforkinme
I'm sure this is a really really stupid question but I can't seem to find a clean way to return a JSON object, i.e. by not calling a controller and just returning the result of json_encode. This was easy is Symfony 1.x but I have no idea how to do it in Symfony2. Any body know how to do this?? I h