Debug is breaking my JSON... How to disable it from some methods ? |
I typically delegate views to just HTML. I suppose if it works well for you then great. Seems like it might be challenging to get the JSON returned well. I'd probably just build the array of data to return as JSON in the controller, or another library more likely, then use $this->response->setJSON() to return it. You might also look at the API Response Trait to help with responses.
|
Messages In This Thread |
Debug is breaking my JSON... How to disable it from some methods ? - by Poetawd - 10-07-2019, 07:09 PM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by kilishan - 10-07-2019, 07:17 PM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by Poetawd - 10-07-2019, 07:55 PM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by kilishan - 10-07-2019, 08:01 PM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by Poetawd - 10-07-2019, 08:03 PM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by kilishan - 10-07-2019, 08:11 PM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by Poetawd - 10-10-2019, 09:08 PM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by kilishan - 10-11-2019, 06:33 AM
RE: Debug is breaking my JSON... How to disable it from some methods ? - by cyberstunts - 04-13-2020, 03:39 PM
|