CI4 and debug string on response - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: CI4 and debug string on response (/showthread.php?tid=81494) |
CI4 and debug string on response - serialkiller - 03-11-2022 I have a problem with json strings, when the page returns me a josn value is followed by a debug string. I commented in the "Toolbar.php" config file PHP Code: use CodeIgniter\Debug\Toolbar\Collectors\Views; but it keeps getting out the string, how can I fix it? The page is not a view but directly the controller that after processing the data in the model returns the response json string RE: CI4 and debug string on response - JustJohnQ - 03-11-2022 I had the same problem and ended up disabling the toolbar in app\Config\Boot\development.php I hope this works for you. RE: CI4 and debug string on response - kilishan - 03-11-2022 You can also disable it, or modify when it runs, in app/Config/Filters.php. RE: CI4 and debug string on response - serialkiller - 03-11-2022 Disabled, I was hoping there was a way to not have to disable it , thanks RE: CI4 and debug string on response - kenjis - 03-11-2022 (03-11-2022, 03:33 AM)serialkiller Wrote: I have a problem with json strings, when the page returns me a josn value is followed by a debug string. Can't reproduce it. How to reproduce? PHP Code: <?php |