I’ve got this Codeigniter structure using a CRUD system:
Each level extends the layer above them.
I am currently working on the application layer and I use the Application Framework layer for all sorts of db communictions (Through CRUD system), however because I extend everything I am able to make a direct DB call from the ‘Application layer’ to the ‘CI Framework layer’ bypassing the Application Framework.
That is exactly what I need to prevent. The only access to the DB should be through the Application Framework.
Any ideas how I could do that ?