How can I use CodeIgniter ACL library?
20,089
Solution 1
You can start working with Bonfire for ACL with codeigniter.
It is a ready to use Codeigniter framework with some additional functionalities. It contains User registration, authentication, and Role-Base Access Control....
Download link:
https://github.com/ci-bonfire/Bonfire/archive/master.zip
Documentation for working with user permissions and roles in bonfire:
http://cibonfire.com/docs/bonfire/roles_and_permissions
Solution 2
You can find lot of links for tutorial while searching in google.
- http://www.tastybytes.net/blog/simple-acl-class-for-codeigniter
- https://code.google.com/p/ar-acl/
- https://github.com/brandesign/CodeIgniter-ACL // contains implementation
In SO also, how to use this simple acl library into codeigniter
Author by
Muhammad Rashid
Updated on August 11, 2020Comments
-
Muhammad Rashid over 3 years
How can I implement an ACL library? What is the best way for using ACL for user roles? In standard PHP, I'd write code like this:
if (userTypeId == 'Admin') { hello Admin } else if (userTypeId == 'Member') { hello member }
How would you do this using CodeIgniter?
-
mopsyd about 8 yearsPlease link to the repo instead of the zip file directly
-
Zahid Usman Cheema about 3 years@mopsyd, here you go: github.com/ci-bonfire/Bonfire