zen of coding

find(‘first’)… gotcha

Just a simple tip… Here’s a typical find() example: $this->Post->find(’first’, array(’condition’ => array(’id’ => 5))); Why does it return me the post with ID = 1, rather than ID = 5? Of course, a careful reader spotted the spelling issue in the key: ‘condition’ instead of ‘conditions’. Moral of the[…]

Read More »
%d bloggers like this: