> I'm trying to use the new methods of validation from the 1.2 code

Have a look at the code on this page which works fine with 1.2

http://blog.evansagge.com/2006/12/28/evans-cakephp-validation-technique-20/

it takes care of 1), 2) and 3) from above (and probably 4 but i didn't
check)

I've been using it for a while with good results


be aware of a couple of things if you use this code.

1) the class name conflicts with the core Validation class.  You'll
have to rename it if you want to use this code with 1.2

2) there are some bugs in the code, but they're easily fixed.  I
pointed one out in my comment and then went on to discover that the
same error occurs througout the code.

3) there is an unresolved issue described in comment #5 that the
author hasn't posted a fix for and I haven't had time to track down on
my own.

Despite these few problems, it's a very useful piece of code as it
resolves the biggest shortcoming of the core Validation class so far,
which is multiple checks with distinct error messages on the same
field. Maybe one of the developers could look at incorporating this
into the core...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to