Flavius Cosmin
Flavius Cosmin
found anything interesting? :)
If I put a header content type application json right in your case json on the last function then it works, but I don't wana do that, did you try...
I left your line 147 as it is, and im doing `header('Content-Type: application/json');` before this line: https://github.com/milesj/utility/blob/master/Controller/Component/AjaxHandlerComponent.php#L186 Would you be willing to setup a simple cake project and try it...
I know it's the wrong approach but it works. I've tried debugging the request handler / response but got nowhere, at the end $ctype was application/json and $type was json....
haven't tried from controller / action yet... will do when i get to work tomorrow.
Haven't had a chance to try it out yet, deadlines at work, last 2 days before holidays, couldn't even touch that specific cake project...
This PR can be closed because #161 was already merged