Archive for October, 2010

You can save has and belongs to many models in CakePHP (v1.3.4) whilst adding additional data to the join table, in a single operation.
In this example I’m saving Users that HABTM Videos. The users_videos join table has an order column.
Firstly add the ‘with’ parameter to the join, you can add the ‘order’ parameter too [...]

I had a couple of CKEditors in a jQuery UI dialog box today. The dialog box contained an iFrame with the actual CKEditors inside that.
On the odd occasion when the modal box opened (tested in FireFox 3.6 on the Mac and PC) the vertical scroll position of the iFrame would not be at the top. [...]

I’m in the situation where most of my CMS components are extensible CakePHP plugs.
I’ve just started to use the CakeDC migrations plugin (been meaning to for a long time as I always loved Rails migrations).
I had previously automated the insertion of plugin ACO node records using a Bash script that chugged through a stack [...]


top