My name is Aidan Lister. I am a professional web developer working primarily with PHP. I am an author of the PHP documentation, and a PEAR developer.

This personal blog discusses what's hot in web development, programming concepts and solutions, and my code repository.

Read more at my about page »

Creating a community in five minutes with CakePHP

Posted on May 1st, 2009 in Programming | 52 Comments »

CakePHP’s automatic hashing makes things a lot harder than they need to be, and simple tasks (e.g. a registration page) become annoyingly difficult.

Here, we build a complete community based website in five minutes using Cake best practices, with the following features:

  • Account registration
  • Login and logout
  • Account management page
  • Password retrieval
Read the rest of this post »

Repository content moved to the blog

Posted on April 8th, 2009 in Housekeeping | No Comments »

I have just finished moving all of my repository content to separate posts in WordPress. I also decided to get a little tricky and manually imported all of the old comments into WordPress too.

Read the rest of this post »

Better Error Handling with CakePHP

Posted on April 6th, 2009 in Programming | 6 Comments »

CakePHP is a wonderful framework, but it really drops the ball when it comes to practical error management. In production environments (DEBUG = 0), only 404 or 500 errors are displayed to the user, and no errors are written to the log files.

To solve these two problems we override php’s error handler to enable production error logging, and cake’s error handler to allow forward facing error pages.

Read the rest of this post »

It begins …

Posted on April 5th, 2009 in Housekeeping | No Comments »

I’m told I’m not a very funny person. Nor is my writing of particular quality. However, after camping this domain name for the last eight years I’ve finally decided to do something useful (perhaps debatable) with the space and start my own blog.

Read the rest of this post »