Debug is breaking my JSON... How to disable it from some methods ? |
For others looking for solution, just define MIME/"Content-Type" for proper response with all content types if similar functions to "setJSON" doesn't exist.
CodeIgniter automatically disables debug bar in dev when you need to output something other than HTML. PHP Code: public function MyResponse(){ |
Welcome Guest, Not a member yet? Register Sign In |