Yes, that does sound like a pointless title. Let me explain the situation, we have a self referential model, Pages, which has child pages and a parent page. Because I’m using CakePHP for this project I have added the Tree Behaviour to the model also which is really handy, but you don’t need that behaviour […]
Posted on August 17th, 2008 by franktank
Filed under: PHP | No Comments »
Graphs provided by IT Jobs Watch.
Demand chart provides the 3-month moving totals beginning in 2004 of IT contractor jobs citing the web framework, within the UK as a proportion of the total demand within the Application Development category.
Daily rate charts provide the 3-month moving average for daily rates quoted in IT contract jobs citing […]
Posted on July 31st, 2008 by franktank
Filed under: PHP | No Comments »
Using the composition pattern to generate, clean, well organised, flexible object orientated PHP code is a popular method with todays web programmers. Below is an example of two possible approaches to store a reference of one object to another - a form of composition.
To inspire some interaction we will give the best comment to […]
Posted on March 10th, 2008 by franktank
Filed under: PHP | No Comments »
Validating language specific characters in user input can be a bit of a pain, especially if you are using regular expressions to filter user submitted data.
Not only that, but testing your methods can also be a pain - firstly you will need some shortcuts for entering UTF-8/Unicode chars into form inputs if you […]
Posted on March 9th, 2008 by franktank
Filed under: PHP | 2 Comments »
Error handling is obviously fairly important so I have finally invested time into a custom error handling class for PHP 4 and above. It is a fairly small and simple class (only about 150 lines), I’m quite happy with it so far, of course you can download the class below and try it out for […]
Posted on May 6th, 2007 by franktank
Filed under: PHP, Scripts | 6 Comments »