CodeIgniter Forums
buggy debug bar since I put logic in the manager - 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: buggy debug bar since I put logic in the manager (/showthread.php?tid=78678)



buggy debug bar since I put logic in the manager - filit - 02-24-2021

Hi,
I had a website with all the business logic inside the controller. 
I only had controllers and models, but controllers had too much code

So, following the best practices I read on codeigniter.com website and inside Codeigniter Foundation book, I decided to move some code into a Manager class, inside App/Libraries, to have a cleaner code and easier to reuse.

The website runs correctly and does everything as before, but now in the debug bar I cannot see Database queries any more.
Also, the VIEWS tab shows 0, as if there weren't views...but if I click VIEWS then the views are correctly highlighted.

Did anyone experience same issue and know how to solve it? Could it be related to the fact that I load the manager class through a service?

Thank you

Filippo