Welcome Guest, Not a member yet? Register   Sign In
Debug is breaking my JSON... How to disable it from some methods ?
#8

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.
Reply


Messages In This Thread
RE: Debug is breaking my JSON... How to disable it from some methods ? - by kilishan - 10-11-2019, 06:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB