Cake has some nice support for modeling many to many relations using ‘hasManyAndBelongsTo’. There’s a simple example here.
Though this works well for simple connections between classes, you can’t do much else. Taking the classic Blog-style Posts and Tags example, this approach will easily let you link multiple tags to multiple posts. But what if you want to track the date that a tag was applied to a post? If you add a date field to the join table, it seems pretty much impossible to retrieve it, and setting it is even harder. You can search on it by twiddling with the conditions on the relation, but that’s ugly. I think in that case, you have no option but to model the relation explicitly with two pairs of hasMany/belongsTo relations linked through a PostTag model, and then you’ll have to set your recursion deeper and get busy with unbindmodel in order to keep the number of queries down. Who knows, I might even write up an example and post it here…
PHP London Take 4
A simplified London shape (Based on Sadiq’s) with an exaggerated river:
It’d difficult to place the text without interference with the river, so I thought I’d try it offset.
PHP London Take 3
Trying a few with the river in the middle, and a different rectangular arrangement.
The outlines are a little thin at this resolution.
PHP London Logo Take 2
I’ve done a bit of work on the logo so it’s actually a logo and not just a bit of text! I kept the river theme. Here are a few colour variations (mostly using “official PHP Blue”), and minor spacing variation on “London”. What do you think?