Role based Access Control List (ACL) |
[eluser]vukasin0[/eluser]
Hi All, I've created Role Based ACL Library to mach my project needing and want to share it with you. I know that there is some ACLs available here but didn't find any ROLE Based (maybe I missed some ). Here you can find code and examples with sample data: Quote:https://www.dropbox.com/sh/ajy750jlito6dyc/GblTsK2g7X EC_ACL.sql - MySql DB Tables Prerequisite Code: mysql --user=root --password=password --database=test < EC_ACL.sql EC_Acl.php - Library - put in your Application/Library folder --Manually load library: Code: $this->load->library('EC_Acl'); // Moved to autoload --Autoload library (preferred way): Quote:In: {CI_Root}/application/config/autoload.php Code: $autoload['libraries'] = array('database', 'session', 'EC_Acl'); EC_ACL_login_controller_example.php - complete login and authentication process demo. EC_ACL_get_object_access_example.php - provide roles access for objectid in user authenticated session demo. EC_ACL_example_data_INSERT.sql - Sample data which should be used for demo Code: mysql --user=root --password=password --database=test < EC_ACL_example_data_INSERT.sql ec_acl_demo.zip - this is ec_acl lib implemented in latest CI v2.1.2 framework. As prerequisite execute sample SQL and change configuration of {CI_Root}/application/config/database.php to match you DB. To see results call acl_demo controller: http://localhost/acl_demo. Any input / suggestion is very welcome !!! At least I'm only hobbyist developer passioned in PHP and Open Source. I don't want to spent many words about Codeigniter - great framework. Cheers !!!! |
Messages In This Thread |
Role based Access Control List (ACL) - by El Forum - 06-25-2012, 11:27 AM
Role based Access Control List (ACL) - by El Forum - 06-25-2012, 08:06 PM
Role based Access Control List (ACL) - by El Forum - 06-26-2012, 06:42 AM
Role based Access Control List (ACL) - by El Forum - 06-26-2012, 06:52 AM
Role based Access Control List (ACL) - by El Forum - 07-04-2012, 01:52 AM
Role based Access Control List (ACL) - by El Forum - 07-04-2012, 06:21 AM
Role based Access Control List (ACL) - by El Forum - 09-27-2012, 09:50 AM
Role based Access Control List (ACL) - by El Forum - 10-01-2012, 02:32 AM
|