Howto make a login/auth .. thing ;) |
[eluser]Jacob Krustchinsky[/eluser]
Ill give you a quick outline, but in order to learn it entirely I would recommend http://net.tutsplus.com/tutorials/php/us...-with-php/ as an article to understand the logic and then apply it to codeigniter. Make an auth controller and an auth model. Auth controller: Auth() index() register() login() logout() This controller will handle all of the basic stuff. Utilize the form validation class to make your job easier. Auth model: Basic CRUD model, addUser(), editUser(), deleteUser(), getUserInfo() etc. You could even add a library to handle some simple checks to clean up your code, like.. $this->auth_check->isAdmin() or $this->auth_check->isUser() |
Messages In This Thread |
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 05:02 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 05:43 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 08:42 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 11:08 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 08:41 AM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 11:23 AM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 02:49 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 02:53 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 05:03 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-27-2010, 08:57 AM
|