阅读背景:

在symfony中将内容类型设置为json

来源:互联网 

I am using symfony 1.4, to create my project with propel as ORM. i want to get the response in JSON format, when i call a url. I have set the headers to "application/json" but it is not working, i am getting the response back in HTML format..which i am not able to decode. How can we set content-type in symfony?? example code: Action- I am using symfony 1.4, to create my project wi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: