Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 body {"firstname":"abcrehd","lastname":"sdfsdf"} 中发送一个 json post 响应我如何在控制器中声明一个数组并将 json 响应保存在数组中,然后显示阵列?谢谢!
RTM访问查询字符串参数。
$this->request->query
我找到了答案:
$data=$this->request->input('json_decode'); pr($data);
这会将传入的数据保存为 $data 中的数组并打印该数组。:)