09/Mar/10

MVC ‘module’ controllers

Most MVC frameworks written in PHP handle their controllers in pretty much the same way: a PostsController (or similar) class that has a bunch of methods (actions) which each map (roughly) to a URL. (no comments)

10/Feb/10

Force CakePHP database to use UTF-8

In our current project at work (it’s very interesting, I’ll likely get a few posts out of it) we’ll have to accept input from a variety of sources. (no comments)

31/Jan/10

More on the Cache library

If you found Friday’s post on caching in CakePHP, Miles has posted a few pitfalls when working with the Cache engine. (no comments)

29/Jan/10

Caching “things” in CakePHP

There are a few ways to cache content in CakePHP. There is a feature to cache the output but I’ve found that a little tricky to get right in the past. When the cache expired the action wasn’t called so we had a page with no content… not quite the effect I was looking for. (no comments)


Older posts

15/Jan/10

Accessing view variables from helpers

There is no official way to access your view variables in your view helpers. And there's probably a good reason for that, but heck, I'm on a deadline. (1 comment)

19/Nov/09

Compiling PECL APC for OSX Snow Leopard

Installing PECL extensions for PHP is usually quite simple, you fire up terminal and type sudo pecl install apc, which should install the Alternative PHP Cache extension. (no comments)

15/Nov/09

Insert rows in a loop in CakePHP

Having recently been building an import tool for our latest site at work, I was reminded of a very important thing to remember when creating rows in CakePHP. (2 comments)

29/Oct/09

Getting to grips with PHP namespaces

So, PHP 5.3’s been out for a while now so it’s about time I start getting to grips with some of the new features it introduces. (no comments)

26/Oct/09

Creating an extensible CMS with CakePHP

A few weeks ago I came across Wildflower, which, in the simplest terms, is a CMS built with CakePHP. (3 comments)

24/Oct/09

New design

This is a post more directed at those of you following my RSS feed. I assume that if you’ve been to the site before and are looking at it now you’ll notice that it’s gone from dark green to white. I like to think my visitors would notice a change of that magnitude. (no comments)