User Library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: User Library (/showthread.php?tid=39221) |
User Library - El Forum - 03-04-2011 [eluser]Waldir Bertazzi Junior[/eluser] This is a very simple user validation and handling for users I've been working on. Now finally I think is good enough to face the world! You can read more on my blog http://blog.waldir.org/projetos/codeigniter/user-library/ . Its very simple, easy to use and implement on your very next project. I wont make myself long here because theres a good example on how to use it and I really believe that the example will make your day if youre after a login library haha : ) Heres the github: https://github.com/waldirbj/codeigniter-user Enjoy : ) User Library - El Forum - 03-04-2011 [eluser]Giorgio Nordo[/eluser] It seems very nice and useful. Have you implemented different access levels too? User Library - El Forum - 03-04-2011 [eluser]Waldir Bertazzi Junior[/eluser] Well, the permissions are extremely generic. I'm working on a complete documentation yet but you can easily create a permission called "Admin" and another one called "Editor" for example. After linking each user to their permission, you can use, for instance: <?php if( $this->user->has_permission('admin') ): ?> <div id="admin_control"></div> <?php endif; ?> You can easily extend that for what you want, like 'level_one' to 'level_n', etc. User Library - El Forum - 03-04-2011 [eluser]Giorgio Nordo[/eluser] Thank you :-) Giorgio |