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 »
July 30th, 2008 Code
11 Comments »
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. Easy as can be! You will find that the tutorial is fun and simple. In the time it might normally take you to play foxy bingo or send an email, you will have learned a lot! Ready? Let’s do it!
Read more »
July 29th, 2008 Code
52 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 »
July 9th, 2008 Portfolio
No Comments »
I was looking at the new wpcandy theme today and noticed their latest post headline, which had a nice little shadow. I thought “hmm, I want to know how they did that. So I set out to check the code. After all, how hard could it be?
Read more »
June 19th, 2008 Code
7 Comments »
This is the portfolio of Sam Turner, an online buddy of mine. He did the design of his minimalistic online portfolio, showcasing his photography and his digital work. I coded the design into valid xhtml/css and added a little php for the navigation. Read more »
March 1st, 2008 Portfolio
2 Comments »