阅读背景:

从cakePHP控制器检索json数组

来源:互联网 

I want to return a JSON array from a cakePHP controller. I effectively have a jquery click event which should send either a post, ajax or get call to the controller (specified with URL) and that controller should just return the array. This makes sense to me because I will not create a view file, I literally send the response to the controller and I can set the header, echo the json array and possibly just exit.I want to return a JSON array from a cakePHP co




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

分享到: