Yes several rules per field was the way to go

But my custom validation would contact a remote server and then
display an error message appropriately

So I thought I would save on those remote calls if for single
validation rule I had the facility for displaying different error
messages

Also I tried $this->invalidate('field', 'Error message') in my custom
validation function but only the default error message still displays

Thanks

Malcolm

P.S as an added note can you please post an example with custom
validation where the error message is in the VIEWS and NOt in the
MODEL ?

On Nov 24, 1:50 pm, "jitka (poLK)" <[EMAIL PROTECTED]> wrote:
> Why not have several validation rules for one field?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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