Welcome Guest, Not a member yet? Register   Sign In
buggy debug bar since I put logic in the manager
#1

(This post was last modified: 02-24-2021, 10:27 AM by filit.)

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB