Recommend this page to a friend! |
Classes of Rogério Taques | CodeIgniter ACL User Management | README.md | Download |
|
DownloadCI ACL 1.0 betaImplements an Access Control List for your applications written with Codeigniter. You should use it in order to help you control which path the user can (or cannot) access. Getting StartedDownload this project, and copy its content into your Codeigniter app, under For example:
After "instal" it on your app, then you'll need to setup all acl definitions. All those definitions should be placed in
Finally, in order to test if given path is valid or not, do as following:
That's all. MethodsThere some methods that can be used on runtime: is_public( path : string ) : booleanReturn TRUE when given path is set as 'public', otherwise, return FALSE. is_allowed( path: string, role : string ) : booleanReturn TRUE when given role is set as 'true' for given path, otherwise, return FALSE. set( path : string, config : array ) : voidThis method is used to add new ACL rules that are not present on It's very useful when you're storing your ACL rules on database. I.e:
Get involvedReport bugs, make suggestions and get involved on contributions. Feel free to get in touch. ;) |