# |
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 :) |
# |
Oct 22nd 2009, 06:42 |
ADmad |
georgious: thats why is said you need before and after both |
# |
Oct 22nd 2009, 06:42 |
Phally |
young-apacher: lots. |
# |
Oct 22nd 2009, 06:41 |
young-apacher |
Any documentation about that ? |
# |
Oct 22nd 2009, 06:41 |
georgious |
ADmad: I can use afterFind but then I will have to go through each results and request from the DB once again |
# |
Oct 22nd 2009, 06:41 |
ADmad |
you are not doing it correctly then |
# |
Oct 22nd 2009, 06:41 |
georgious |
TehTreag: you mean? |
# |
Oct 22nd 2009, 06:41 |
georgious |
ADmad: I tried beforeFind but if I insert a field there, it will be the only one |
# |
Oct 22nd 2009, 06:40 |
TehTreag |
georgious: Is it something you can add to the query? |
# |
Oct 22nd 2009, 06:40 |
Phally |
young-apacher: depends on the engine |
# |
Oct 22nd 2009, 06:40 |
tPl0ch |
young-apacher: with InnoDB Engine, yes |
# |
Oct 22nd 2009, 06:40 |
ADmad |
georgious: you need to use callback beforeFind and afterFind... check manaul |
# |
Oct 22nd 2009, 06:40 |
georgious |
can I do that easily? |