Posted in cakephp, development, php on Feb 18th, 2010
if you add a primary key which would turn an “insert” into an “update” within beforeSave() you’ll need to set $this->__exists = true;… the call to $this->exists(); happens in model.php before the callback to beforeSave().
Read Full Post »
Posted in cakephp on Dec 2nd, 2009
I’ve been working with CakePHP for a few years now and am very happy with it. I’ve been working with the 1.2 version for a few months (since it went stable) and playing with the Auth and ACL core components.
I’ve decided that ACL is too complicated for most setups, and Auth is fine, but not [...]
Read Full Post »
Posted in cakephp on Nov 30th, 2009
I noticed that the data for my saves were not populating with the current date/time as they should, when calling the model->create() function, without a parameter, and then the model->save() function.
$this->ModelName->create();
$data = $this->ModelName->save($dataWithoutCreatedModifiedUpdated);
$data['ModelName']['created']==”0000-00-00 00:00:00″
Read Full Post »
Posted in cakephp, geek on Sep 8th, 2008
We had the very good fortune of attending the first CakePHP workshop, in Raleigh, NC this weekend. Four of the core developers of the project where there, including the project manger and the lead developer; along with one of the guys behind jquery-UI. The non-presenters ranged from people who had never used CakePHP to people who had been using [...]
Read Full Post »
Posted in cakephp, geek on Sep 6th, 2008
So here I am, in Raleigh, NC – waiting for the CakePHP Workshop to start… We survived the rain so far, waiting to see if there is any flooding or whatnot.
Have met a few people here so far, all seem very friendly. Looking forward to seeing what happens and what we learn along the [...]
Read Full Post »