Automagical selects or checkboxes

A quick example of some automagic goodness… Let’s say we need to to build an “add Post” form and allow

Read more

Filtering results returned by Containable behavior

First of all, let me warn you that what I’m describing here is more or less a hack and is

Read more

HABTM and JOIN trickery with CakePHP

Update (10/7/2009)… this functionality has been rolled into Habtamable behavior An interesting question came up on IRC today… If I

Read more

'fields', 'conditions' and associated models in CakePHP 1.2

Sometimes you see code that tries to do something like this: $this->Company->find(’all’, array(’conditions’ =>array(’Profile.name’=>’test’),            

Read more

Practical use of saveAll() (part 2, notes and tips)

In part 1, I explained how to use saveAll() in order to save multiple models at the same time, if

Read more
%d bloggers like this: