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!

Deploying websites with Git

Use Git to deploy your web applications without having to faff with FTP syncronisation or manually working out which files need to be uploaded. Read More »

Posted in: Feb 23, 2010  Category: Git


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  Category: CodeIgniter


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  Category: CodeIgniter


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  Category: CodeIgniter


Twiny-Framework: the framework small enough to tweet

Many frameworks say they are lightweight, quick and easy on your server, but none are as lightweight as my new "framework" which is so lightweight it can fit in a Tweet. Read More »

Posted in: Dec 15, 2009  Category: PHP


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  Category: CodeIgniter


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  Category: CodeIgniter


PyroCMS v0.9.7.3 released

After a long wait the new stable PyroCMS has been released which adds German language support and a bunch of other bug-fixes.
Read More »

Posted in: Dec 07, 2009  Category: PyroCMS


Managing stable and unstable branches in Git

Stable and unstable branches mean that while you work on a new version of your software, you maintain the current version by working on bug-fixes and small tweaks. Find out how to achieve this using Git.
Read More »

Posted in: Nov 30, 2009  Category: Git


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  Category: CodeIgniter


 1 2 3 4 5 >  Last ›