EllisLab text mark
Advanced Search
     
Forbid direct DB calls to force use crud
Posted: 11 November 2012 07:23 AM   [ Ignore ]
Joined: 2010-05-11
47 posts

Hi,

I’ve got this Codeigniter structure using a CRUD system:

http://img138.imageshack.us/img138/4596/diagramm1.png

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 ?