Addition to Auth Library tutorial
On July 30th, 2008, the time was 14:04 in Code. 1 Comment »
Okay, I’ve decided to write a little addition to my previous tutorial. I finished the last tutorial, my Auth library for CI, with a note:
When you use this library, you’ll have to manually adjust the standard redirects from the library. I just set them to /admin and /admin/login but this could/will be different for you offcourse. A better way would be to add an initialize() method that gets a config array passed to set these URI’s in class vars.
I have adjusted my library a little so you can initialize it, setting redirects as you please. Even more, it now automatically uses any auth.php config files too. This was really easy and I thank xwero for helping me figure it out, over at the CodeIgniter community. Read more »
Auth library for CodeIgniter tutorial.
On July 29th, 2008, the time was 16:32 in Code. 1 Comment »
Hello and welcome to my first tutorial in ages. Today, I’ll be explaining to you how you can create a simple login (or ‘auth’, short for authorization) library for CodeIgniter.
What functionality will our library have? Users accessing restricted pages will see a login screen if they’re not logged in, once logged in they’ll be redirected to the page where they were, or simply see a standard page. That’s about it for this tutorial, though adding things like user groups, restrictions etc… could all be added later. Maybe stuff for a later tutorial?
I’ll copy/paste bits of code from my own (simple) auth library and then explain what they do. So at the end of this tutorial you will have a working library. Read more »
Els Dufourmont
On July 9th, 2008, the time was 9:53 in Portfolio, Webdevelopment. No Comments »
This was a website made for Els Dufourmont. She’s a painter from Belgium and started exhibiting her work and so she also needed a website to show off her work.
Read more »