How can I use CodeIgniter ACL library?

前端 未结 2 963
后悔当初
后悔当初 2021-02-06 11:30

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\') {         


        
2条回答
  •  礼貌的吻别
    2021-02-06 12:21

    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

提交回复
热议问题