Welcome Guest, Not a member yet? Register   Sign In
Disable Debug Bar for certain controllers?
#1

Is there a way to disable the debug bar for certain controllers, or ideally for individual routes or functions within a controller?
It's causing issues when I'm trying to return JSON responses through AJAX.
Thanks!
James
Designer, developer and Diet Dr. Pepper addict. Messing up PHP since <?= $when['year';] ?>
Reply
#2

You can exclude filters for specific paths. https://codeigniter.com/user_guide/incom...ml#globals
On ajax requests, the response body is not modified in any way, so debugging the toolbar does not affect the response.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB