It’s not news that Bindable Behavior has saved countless lives in terms of functionality.
As of Changeset 6918 this has now been integrated into the CakePHP core. So, we’ll have something to look forward to in the official release of CakePHP 1.2. Mind you, there may be a lot of other hidden gems in there, I just haven’t been paying attention lately :).
Most of the functionality is as we remember, with a few exceptions:
- $this->Article->restrict(’Comment’) now becomes
$this->Article->contain(’Comment’) - $this->Article->find(’all’, array(’restrict’ => array(’User’))); turns into
$this->Article->find(’all’, array(’contain’ => array(’User’)));
For a complete list of the differences and changes you can check out the
Containable Test Cases for excellent examples of how to use this to it’s full potential.
Popularity: 55%

Excellent news, can’t wait for the big day, and a chance to play with all the cool new features I’ve been reading about these last few weeks
Peter Butler, on May 23rd, 2008 at 12:27 pm
I must say, this is one of my favorite CakePHP addons
Baz L, on May 26th, 2008 at 6:19 am
Leave a Reply (I Follow)
Popular Posts
Recent Posts
Tags
Add new tag Ajax apache auth backup bake bakery Blog browser CakePHP calendar cookie cron CSS database date design domain Fast CGI firefox form free ie internet explorer JavaScript jquery Linux mootools MySQL PHP prototype ruby on rails School time tutorial wamp wordpress