I'm using this:

'nonEmpty' => array(
               'rule' => VALID_NOT_EMPTY
               'required' => true,
               'allowEmpty' => false,
               'message' => 'You must to put something.'
               )

2007/11/18, mbavio <[EMAIL PROTECTED]>:
>
> Hi, I was told that VALID_NOT_EMPTY is deprecated and in orden to
> achive this kind of validation, you have to use:
>
> 'nonEmpty' => array(
>                 'rule' => null
>                 'required' => true,
>                 'allowEmpty' => false,
>                 'message' => 'You must to put something.'
>                 )
>
> But it´s not working. I´ve managed to solve the problem changing the
> rule...
>
> 'rule' => array('minLength', '1'),
>
> But it doesnt seem like the official solution. Somebody with the same
> problem?
>
> Thanks.
>
>
> >
>

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