[symfony-users] Re: flot ajax json

2010-03-07 Thread ScherlOMatic
Hi! Thx for your reply. I created a *.json.php but it is never read. I also tried to remove the *.php which will result in an error. Here is my complete action without business logic: public function executeShowAjax(sfWebRequest $request) { $this-setLayout(false); $statisticData =

[symfony-users] Re: flot ajax json

2010-03-06 Thread RG
What is the name of your temlpate ? It should be xSuccess.json.php. symfony will automatically set the right content type. See factories.yml in symfony/lib/config/config ( json: [application/json, application/x-json] ) On Mar 6, 7:33 pm, ScherlOMatic stefan.scherbich...@gmail.com wrote: