# |
Sep 13th 2009, 15:41 |
ionas82 |
hm |
# |
Sep 13th 2009, 15:41 |
dogmatic69 |
ionas82: $this->Model->validates(); |
# |
Sep 13th 2009, 15:39 |
Hedz |
method* |
# |
Sep 13th 2009, 15:39 |
Hedz |
ionas82 where is the methode? |
# |
Sep 13th 2009, 15:38 |
ionas82 |
how could I directly call a validation method like Validation::uuid($id) in my controller (users could manipulate URL => thats why I want that) |
# |
Sep 13th 2009, 15:37 |
dogmatic69 |
yip |
# |
Sep 13th 2009, 15:36 |
ionas82 |
thats cosmetic bugs though ;) (copy and paste owns me again) |
# |
Sep 13th 2009, 15:36 |
ionas82 |
dogmatic69, yeah |
# |
Sep 13th 2009, 15:35 |
dogmatic69 |
and is_trashed message |
# |
Sep 13th 2009, 15:35 |
dogmatic69 |
ionas82: is_replied, the message in validation is wrong |
# |
Sep 13th 2009, 15:30 |
Hedz |
thats good to know |
# |
Sep 13th 2009, 15:27 |
ionas82 |
http://bin.cakephp.org/view/1646318623 |
# |
Sep 13th 2009, 15:27 |
ionas82 |
now this works just great in regards for saving a message send |
# |
Sep 13th 2009, 15:27 |
ionas82 |
~bin |
# |
Sep 13th 2009, 15:16 |
ionas82 |
like Parent/Child stuff |
# |
Sep 13th 2009, 15:16 |
ionas82 |
okay its because I have recursive messages |
# |
Sep 13th 2009, 15:15 |
ionas82 |
this alone creates an infinite loop crashing on memory exhaution: http://bin.cakephp.org/view/2105634595 |
# |
Sep 13th 2009, 15:15 |
ionas82 |
~bin |
# |
Sep 13th 2009, 15:13 |
ionas82 |
but that could mess with this http://bin.cakephp.org/view/1665677883 |
# |
Sep 13th 2009, 15:13 |
ionas82 |
~bin |
# |
Sep 13th 2009, 15:13 |
ionas82 |
i could add the validation rules in beforeValidation |
# |
Sep 13th 2009, 15:12 |
Hedz |
I agree |
# |
Sep 13th 2009, 15:12 |
ionas82 |
I just do not get why it works in one place and does not in another, and have no clue on how to debug it |
# |
Sep 13th 2009, 15:12 |
ionas82 |
Hedz, If I have different views for one model the messages should be the same and I do not want duplication there |
# |
Sep 13th 2009, 15:11 |
ionas82 |
http://bin.cakephp.org/view/156886004 |
# |
Sep 13th 2009, 15:11 |
ionas82 |
this is from my user model and it works great there |
# |
Sep 13th 2009, 15:10 |
Hedz |
yes but for 1 language |
# |
Sep 13th 2009, 15:10 |
ionas82 |
~bin |
# |
Sep 13th 2009, 15:10 |
ionas82 |
the functionality is in the model too |
# |
Sep 13th 2009, 15:10 |
Hedz |
Its in the book |
# |
Sep 13th 2009, 15:10 |
ionas82 |
and Hedz how would I specify multiple errors in one $form->input call |
# |
Sep 13th 2009, 15:10 |
Hedz |
Because they added the functionnality in the view |
# |
Sep 13th 2009, 15:09 |
ionas82 |
it works "this" way at another place for me |
# |
Sep 13th 2009, 15:09 |
ionas82 |
Hedz, why is it done "that" way? |
# |
Sep 13th 2009, 15:09 |
ionas82 |
Hedz, well it works for another model very well, and the explicit text messages will replaced by LL_STRING_KEY |
# |
Sep 13th 2009, 15:08 |
Hedz |
thats how its done |
# |
Sep 13th 2009, 15:08 |
ionas82 |
NOSLOW, I do not want to do that (sorry NOSLOW) |
# |
Sep 13th 2009, 15:08 |
ionas82 |
NOSLOW, I do not want to do that |
# |
Sep 13th 2009, 15:07 |
Hedz |
you have to put the messages in the views |
# |
Sep 13th 2009, 15:07 |
ionas82 |
that can only be done within method domain, not in class domain, due to php limits |
# |
Sep 13th 2009, 15:07 |
Hedz |
thought so |