CI4 and debug string on response |
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
I had the same problem and ended up disabling the toolbar in app\Config\Boot\development.php
I hope this works for you.
You can also disable it, or modify when it runs, in app/Config/Filters.php.
(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 |
Welcome Guest, Not a member yet? Register Sign In |