CodeIgniter Forums
Anyone used phpGACL with CodeIgniter? - 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: Anyone used phpGACL with CodeIgniter? (/showthread.php?tid=3150)



Anyone used phpGACL with CodeIgniter? - El Forum - 09-12-2007

[eluser]bradym[/eluser]
For a project I'm working on I need more fine-grained access control than is available in the ACL libraries I've seen for CodeIgniter. More specifically, I need the ability to allow or deny individual users or user groups access to pages on the site.

I'm considering creating a CI library to incorporate phpGACL as it seems to be the best fit for what I need. Has anyone done this before? Any suggestions? Is there a library out there that will do this that I just missed?

TIA for any help!

Brady


Anyone used phpGACL with CodeIgniter? - El Forum - 09-12-2007

[eluser]esra[/eluser]
phpGACL is dependent on ADODB, so you will need to rewrite the queries to use CI's abstraction layer. Otherwise, you can use ADODB. See this url:

http://ciforge.com/projects/adodb

You might wander over to sqlrecipes.com and take a look at the fine-grained RBAC system developed there. The implementation is said to meet NIST guidelines for Role Based Access Control. It is roughly equivilant to using GACL with AXOs. As a starter, you will need to strip out their sessions code and replace the database code with CI dbal equivalents.