The nerdy adventures of...

Phil Sturgeon


My name is Phil Sturgeon and I program stuff in PHP & CodeIgniter.
I write about Linux, Git, jQuery and all sorts of other computery things!

"CodeIgniter" articles

CodeIgniter Base Classes: Keeping it DRY

Most applications in CodeIgniter will have various types of pages. Logic for these types of pages is normally copied between all of their different Controllers which means, for example,  if the way the admin area protection is handled is changed there will be lots of Controllers to change and test. This logic can instead be shared by some creative extending of the Controller class to create custom Base Controllers like Public_Controller, Admin_Controller, etc. Read More »

Posted in: Feb 08, 2010 


Working with RESTful services in CodeIgniter

This blog has been pretty quiet for a few weeks now, mainly because I have been working on a beast of an article for NetTuts called "Working with RESTful services in CodeIgniter".
Read More »

Posted in: Feb 04, 2010 


CodeIgniter Template library

Working with multiple views in CodeIgniter has always been a pain. Out of the box CodeIgniter provides no real way of having a layout file or header/footer functionality. This library makes the whole process very easy and gives lots of useful methods for shared output.
Read More »

Posted in: Dec 29, 2009 


Why CodeIgniter HTML helper functions rock

A complaint I often hear about CodeIgniter is one about HTML helper functions like form_open(), doctype() and img(). This post helps explain what they are and why they are useful. Read More »

Posted in: Dec 14, 2009 


CodeIgniter on PHP 5.3

Find out how to make PHP 5.3 shut up complaining about "warning: date(): It is not safe to rely on the system's timezone settings" and deprecated functions in your CodeIgniter applications.
Read More »

Posted in: Dec 10, 2009 


Give CodeIgniter's Parser library more kick with Dwoo

Dwoo is a PHP based templating engine aimed as a replacement for Smarty 2.x using similar and alternative syntax. This implementation basically overrides the logic of the default parser with this more powerful system.
Read More »

Posted in: Nov 23, 2009 


Send iPhone notifications from CodeIgniter

Most web-applications currently use automated e-mail's to let an administrator know someting is going on and some applications use Twitter. Why not use iPhone Push Notifications to get an alert to you immediately without having to check a thing? Read More »

Posted in: Nov 21, 2009 


Goodbye Matchbox, Hello Modular Separation

I've been using Matchbox in one of its many forms for several years - almost as long as I have been using CodeIgniter - and it got to the point where I could not use CodeIgniter without it. After all this time an alternative has come along with all Matchbox's features and more.
Read More »

Posted in: Nov 19, 2009 


CodeIgniter "2.0": Rumours, facts and requests

Ever since it was announced that ExpressionEngine 2.0 would be running on CodeIgniter, the forums have been jammed full of "CodeIgniter 2.0" questions. I have answer this so many times I wanted to clear things up and put some useful suggestions forward.
Read More »

Posted in: Oct 30, 2009 


Speaking at EECI2009 in Leiden, Holland

As a massive fan of CodeIgniter I was pretty excited to be attending the EECI2009 conference in Leiden, Holland, as it would give me the chance to meet the EllisLabs development team and lots of other CodeIgniter nerds. Now as a last minute replacement I will actually be speaking at the event too! Read More »

Posted in: Oct 16, 2009 


 1 2 3 >