Welcome Guest, Not a member yet? Register   Sign In
Forbid direct DB calls to force use crud
#1

[eluser]ladooboy[/eluser]
Hi,

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

<a target='_blank' title='ImageShack - Image And Video Hosting' href='http://imageshack.us/photo/my-images/138/diagramm1.png/'><img src='http://img138.imageshack.us/img138/4596/diagramm1.png' border='0'/></a>

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 ?




Theme © iAndrew 2016 - Forum software by © MyBB