Thank you Mike, but i can't use this kind of method to validate because
i have made a method to treat multiple datas, yet cake don't suport
this... I already search it this before, i'm still think that cake
could "guess" the lenght of the field and do something.
It's just an ideia.
And E, i use m
It would be nice if the HTML helper went and set the maxlength
attribute for the input element based on the char or varchar length.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this g
morning mate,
you could always employ the advanced validation technique outlined in
the bakery to check for min and max length.
http://bakery.cakephp.org/articles/view/55
i use this method to check for:
- min length
- max length
- email
- uniqeness
- field confirm
- and a few others
best thin
I searched before open this topic, sorry if it was already made.
I have this problem in early project, i don't really KNOW exactly the
length of varchars. And Cake don't catch MySql errors to me treat.
E.g: 1406: Data too long for column 'cargo' at row 1
This happen when i send a string long th