# |
Oct 22nd 2009, 07:08 |
jessica-m |
ok |
# |
Oct 22nd 2009, 07:08 |
dakota |
just before the save |
# |
Oct 22nd 2009, 07:07 |
jessica-m |
where do you want me to print this->data |
# |
Oct 22nd 2009, 07:07 |
jessica-m |
hang on |
# |
Oct 22nd 2009, 07:07 |
dakota |
and post it here |
# |
Oct 22nd 2009, 07:07 |
dakota |
can you maybe do a pr($this->data) for us? |
# |
Oct 22nd 2009, 07:07 |
dakota |
then my guess is that modified exists |
# |
Oct 22nd 2009, 07:07 |
jessica-m |
when i create a new one it works fine |
# |
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 |