0
我有一个锂应用程序,我试图返回JSON响应当标题请求具有Accept:application/json
(我想避免使用在我的行程类型参数)锂返回JSON响应接受:应用/ JSON
我在我的应用程序/引导/加忽略原始该指令,但我仍然有一个HTML响应
Media::type('json', array('application/json'), array(
'conditions' => array('type' => true)
));
我错过了什么?
我看到了类似的问题,但它接缝,该框架演变:PHP lithium(li3) how to set up automatic response with JSON
非常好,谢谢 – 2014-09-11 08:35:37