Hello,

is there a way to ouput different error message depending on the
result of the custom validation method?

I am checking a field with a custom valdation method and depeding on
the data entered there should be different messages. I.e. in the below
code "message" => "Error" should be replaced by a variable set in the
custom validation method. Actually I would like to return the error
codes from the $_FILES array.

'validateFile' => array(
                'rule' => array('validateFile'),
                'required' => true,
                'message' => 'Error'
          )

Is there a way to do that?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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