# |
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 |
# |
Sep 13th 2009, 15:07 |
ionas82 |
__('Maximum length of 1000 characters.', true), |
# |
Sep 13th 2009, 15:07 |
ionas82 |
because I require to call methods |
# |
Sep 13th 2009, 15:06 |
Hedz |
validation in the constructor... |
# |
Sep 13th 2009, 15:06 |
ionas82 |
Do what? |
# |
Sep 13th 2009, 15:06 |
ionas82 |
Hedz, what? |
# |
Sep 13th 2009, 15:06 |
ionas82 |
everything works when not specifing function __construct |
# |
Sep 13th 2009, 15:06 |
Hedz |
ionas82 why do you do that? |
# |
Sep 13th 2009, 15:06 |
ionas82 |
on calling http://www.sna.dev/messages/send/4a93f845-c860-40d4-81ec-00e68784ca84 which essientally calls just the send method with two UUIDs |
# |
Sep 13th 2009, 15:06 |
ionas82 |
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1097 bytes) in /Users/xxxxxx/Sites/sna/www/cake/libs/model/datasources/datasource.php on line 367 |
# |
Sep 13th 2009, 15:05 |
ionas82 |
http://bin.cakephp.org/view/494329031 |
# |
Sep 13th 2009, 15:05 |
ionas82 |
Hedz, this is my Messages Model |
# |
Sep 13th 2009, 15:05 |
ionas82 |
~bin |
# |
Sep 13th 2009, 15:05 |
ionas82 |
∫in |
# |
Sep 13th 2009, 15:05 |
ionas82 |
few |
# |
Sep 13th 2009, 15:05 |
ionas82 |
view dozen pages at least |
# |
Sep 13th 2009, 15:04 |
ionas82 |
NoReGreT, I recommend you to read the BOOK page by page |
# |
Sep 13th 2009, 15:04 |
NoReGreT |
ionas82: when I have a specific question, I don't know what to search for |
# |
Sep 13th 2009, 15:03 |
ionas82 |
Hedz, sorry :/ |
# |
Sep 13th 2009, 15:03 |
Hedz |
ionas82 that was not clear |
# |
Sep 13th 2009, 15:01 |
ionas82 |
(seems to loop internally) |