# |
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 |
# |
Oct 22nd 2009, 06:45 |
ADmad |
georgious: check the beforeFind of containable behavior.. i believe it manipulates query fields |
# |
Oct 22nd 2009, 06:43 |
ADmad |
georgious: surely not for your exactly issue but you should get an exampel on how to properly use the callbacks |
# |
Oct 22nd 2009, 06:43 |
TehTreag |
georgious: Tell us more. Like a summation of some fields? |
# |
Oct 22nd 2009, 06:43 |
young-apacher |
Phally: ..or do you have any good link ? |
# |
Oct 22nd 2009, 06:42 |
georgious |
TehTreag: retrieving |
# |
Oct 22nd 2009, 06:42 |
georgious |
ADmad: soo.. I can find a solution in the book ? |
# |
Oct 22nd 2009, 06:42 |
TehTreag |
georgious: This is a task you want to do when saving, or retrieving data? |
# |
Oct 22nd 2009, 06:42 |
young-apacher |
Phally: Maybe i have to google :) |