Disable Debug Bar for certain controllers? |
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';] ?>
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. |
Welcome Guest, Not a member yet? Register Sign In |