Sorting with Set::sort() in CakePHP 1.2

You probably already know that CakePHP's Set class is one of the most useful additions to CakePHP 1.2. What may have slipped through the cracks is that you can now sort arrays very easily using a new method - Set::sort().

Read more

Drag and drop using Ext JS with the CakePHP Tree Behavior

If you've ever needed to store nested or recursive data you'll realise how much of a pain it can be. Fortunately for us cake bakers we no longer need to shy away from these data structures to maintain our sanity. With CakePHP's Tree Behavior you can easily add this functionality to any of your models!

Getting data in and out of our tree models is fairly easy using the methods provided, but re-ordering existing data can be frustrating without a GUI. Enter stage left... Ext JS!

This tutorial will explain how to use the Ext JS Tree component to allow you to re-order your tree data using drag-and-drop operations.

See it in action!

Ext JS Tree Drag Example

Read more

Welcome, and goodnight

My name is Adam Royle and I work as a developer for Bigfish, an animation company located in Brisbane, Australia. This blog will contain snippets of hopefully useful information pertaining to whatever I deem appropriate such as Flash, JavaScript, PHP, but probably most of all CakePHP.

← Previous Page