Log message #1109329

# At Username Text
# Oct 22nd 2009, 07:07 dogmatic69 jessica-m: if its not there cake should do it... does it do it when you create a new one?
# Oct 22nd 2009, 07:06 dogmatic69 just before that
# Oct 22nd 2009, 07:06 jessica-m i am
# Oct 22nd 2009, 07:06 dakota cake won't auto update modified if it is set in $this->data
# Oct 22nd 2009, 07:06 jessica-m if ($this->User->save($this->data) )
# Oct 22nd 2009, 07:06 dakota ^ that too
# Oct 22nd 2009, 07:06 dogmatic69 sometimes that helps
# Oct 22nd 2009, 07:06 dakota or another method?
# Oct 22nd 2009, 07:06 dogmatic69 jessica-m: unset( modified ) before you save
# Oct 22nd 2009, 07:06 dakota $this->save
# Oct 22nd 2009, 07:06 dakota jessica-m: and how are you saving?
# Oct 22nd 2009, 07:05 jessica-m sure is
# Oct 22nd 2009, 07:05 dakota jessica-m: Is modified datetime with a default of null?
# Oct 22nd 2009, 07:05 dakota apart from that I can't think of any other way
# Oct 22nd 2009, 07:05 dogmatic69 ye.. let me see if i can sort something
# Oct 22nd 2009, 07:04 dakota I would, do the standard custom paginate, but then add a flag in the conditions (or something) that if its set, you do the custom function, otherwise call parent::paginate
# Oct 22nd 2009, 07:04 dogmatic69 ye
# Oct 22nd 2009, 07:04 dakota You only want to do a custom paginate for a particular thing?
# Oct 22nd 2009, 07:03 dakota dogmatic69: I have
# Oct 22nd 2009, 07:03 dogmatic69 dakota: you done custom pagination before? i dont want to override the normal pagination cos im still using it.
# Oct 22nd 2009, 07:03 dakota or something like that
# Oct 22nd 2009, 07:03 dakota in custom pagination function do a check on if certain flag is set, if it isn't then parent::paginate
# Oct 22nd 2009, 07:02 jessica-m i am still having problems getting modified to save with the updated time, is there anything else i can do to check it?
# Oct 22nd 2009, 07:02 dakota dogmatic69: Probably
# Oct 22nd 2009, 07:01 dogmatic69 is it posible to do custom pagination for a single method in a model?
# Oct 22nd 2009, 06:52 georgious thanks
# Oct 22nd 2009, 06:50 Phally ADmad: i will :)
# Oct 22nd 2009, 06:50 ADmad Phally: hold off till he gets his caffeine boost
# Oct 22nd 2009, 06:50 jcrawford good morning everyone
# Oct 22nd 2009, 06:49 Phally TehTreag: there is your research :)
# Oct 22nd 2009, 06:49 Phally TehTreag: but the api says it isn't: http://api.cakephp.org/search/countdim
# Oct 22nd 2009, 06:48 Phally TehTreag: unless it is defined somewhere else
# Oct 22nd 2009, 06:48 Phally TehTreag: http://api.cakephp.org/file/cake/basics.php
# Oct 22nd 2009, 06:48 TehTreag Phally: I'll have to do a little research before I delete it. Thanks.
# Oct 22nd 2009, 06:47 ADmad gr8 idea :)
# Oct 22nd 2009, 06:47 TehTreag ADmad: Time for me to head to the soda machine for some caffeine enhancement. Maybe then I can keep up with you youngsters.
# Oct 22nd 2009, 06:46 ADmad *slowing down
# Oct 22nd 2009, 06:46 ADmad TehTreag: you had a head start to life over me and now you are too tired and slowing :P
# Oct 22nd 2009, 06:46 Phally TehTreag: it is in the Set class
# Oct 22nd 2009, 06:46 TehTreag ADmad: I'm off to a slow start this morning.
# Oct 22nd 2009, 06:45 Phally TehTreag: http://book.cakephp.org/view/698/countdim it think that section can be deleted