Welcome Guest, Not a member yet? Register   Sign In
User Library
#1

[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/codeigni...r-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 : )
#2

[eluser]Giorgio Nordo[/eluser]
It seems very nice and useful.
Have you implemented different access levels too?
#3

[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>
&lt;?php endif; ?&gt;


You can easily extend that for what you want, like 'level_one' to 'level_n', etc.
#4

[eluser]Giorgio Nordo[/eluser]
Thank you :-)

Giorgio




Theme © iAndrew 2016 - Forum software by © MyBB