Ar-aclIntroductionAr-acl is Access Control Library for codeigniter. This library works with two methods.
User access control by role, e.g: "admin/" is admin page that can be accessed only by admin. "salary/" is employer's salary page that can be edited by hrd dept and accounting dept. User access control by Very Private Page (VPP) check, e.g: "profile/edit/john.r" is a page to edit profile information that can be edited by user who logged on with username "john.r".
FeaturesRestrict user based on role group. Restrict user to access, edit or delete other user private page. AdvantagesNo database needed. Work faster. No need to modify controller. This library is autoloaded. Set UpAdd ar_acl to the autoload libraries to use it. $autoload['libraries'] = array('ar_acl');Copy folder config and libaries to application folder. DemoIf NOT Using Modular Separation (ME, HMVC, Matchbox, or others) Copy profile.php and salary.php to your controllers. Try to access all methods and see the message. e.g. http://localhost/yourbase-url/profile/edit/john; http://localhost/yourbase-url/profile/edit/15; http://localhost/yourbase-url/profile/view/john If USING Modular Separation (ME, HMVC, Matchbox, or others) Copy test folder to your modules folder. Try to access all methods and see the message. e.g. http://localhost/yourbase-url/test/profile/edit/john; http://localhost/yourbase-url/test/profile/edit/15; http://localhost/yourbase-url/test/profile/view/john DownloadThe download also includes test module for test purpose. http://code.google.com/p/ar-acl/downloads/list
DiscussionVisit my codeigniter forum to share your thought and questions.
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.