![]() |
Forbid direct DB calls to force use crud - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Forbid direct DB calls to force use crud (/showthread.php?tid=55815) |
Forbid direct DB calls to force use crud - El Forum - 11-11-2012 [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 ? |