# |
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? |
# |
Oct 22nd 2009, 06:40 |
young-apacher |
Is transaction supported when usin mysql ? |
# |
Oct 22nd 2009, 06:39 |
tPl0ch |
paginate is a controller method, too |
# |
Oct 22nd 2009, 06:39 |
georgious |
I need to append a calculated field to every request to a model |
# |
Oct 22nd 2009, 06:39 |
TehTreag |
tPl0ch: Both are model methods. |
# |
Oct 22nd 2009, 06:39 |
georgious |
hey gyuys |
# |
Oct 22nd 2009, 06:39 |
TehTreag |
) |
# |
Oct 22nd 2009, 06:39 |
Ceeram |
http://book.cakephp.org/view/701/env |
# |
Oct 22nd 2009, 06:39 |
ADmad |
ACTION smacks Ceeram from spoon feeding :) |
# |
Oct 22nd 2009, 06:39 |
tPl0ch |
If I want to have a custom paginate function, do I have to override it in the controller or in the model? |
# |
Oct 22nd 2009, 06:38 |
TehTreag |
Ceeram: Thanks. |