On Wed, May 14, 2008 at 3:38 PM, Marc Schuetze <[EMAIL PROTECTED]> wrote:
>
> But the current behavior is not doing that. When a field is missing in
> a request it is not being picked up by the validation routine

Wasn't this question already answered in this thread?  If your
validation rules require that a certain field be present, then you
MUST specify that the field is required in your validation rules.


var $validate = array(
               'name' => VALID_NOT_EMPTY,
       );

is not the same as

var $validate = array(
   'name' => array('rule' => 'alphaNumeric', 'required' => true,
'message' => 'Required')
);

If I am misunderstanding the issue, please correct me.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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