Named Scopes with CodeIgniter

codeigniter, database, models, php

Named scopes are a really powerful feature of models - they allow you to define a clean, concise syntax when performing queries within your models - and best of all, are really easy to utilise in CodeIgniter.

Read more »

On Comments

blogging

One of the major decisions I made when making this website was not to have comments. I got a bit of grief on Twitter because of it too, but I feel like my reasons are justified. So I’m writing a blog post.

Read more »

Resolutions

life

I’ve never been a big one for resolutions, after all, I’ve always had trouble sticking with them. I’m sure in previous years it’s been because of my age. This year, I’m going to make resolutions and I am going to stick to them. I’ve grown up more than ever before this year - experienced some brand new things, spoken to loads of new people and sorted my life out a lot - now I’ve just got to carry on growing up and eventually become a half-decent person.

Read more »

The best CodeIgniter .htaccess

apache, codeigniter

There are still a lot of questions on the CodeIgniter forums by people wanting to remove the index.php from their URLs. The default .htaccess in the User Guide has never worked for me, but fortunately I’ve got a .htaccess that seems to work on most, if not all Apache servers. Originally by the great Elliot Haughin.

Read more »

It’s Christmas

music

I’ve written a Christmas song. For I.S.

Read more »