thanks for your answer theman, but minLenght is not the solve to this
problem...

I´ve solved myself with the help of the IRC (tks kabturek!)... You
cant put 'rule' => null and validate with 'required' and 'allowEmpty'.
Proved.

Thanks anyway. See u.

Martin Bavio

On Nov 13, 5:14 pm, theman <[EMAIL PROTECTED]> wrote:
> minLength is the key...
>
> seehttp://groups.google.ca/group/cake-php/browse_thread/thread/786da77a8...
>
> On Nov 13, 1:08 pm, mbavio <[EMAIL PROTECTED]> wrote:
>
> > Now I´ve been told in the IRC that using VALID_NOT_EMPTY is
> > deprecated, so I have to use a validation array... The problem is that
> > I cant make just a NOT_EMPTY rule, because it doesn´t exist! Or it
> > does?
>
> > My problem...
>
> > 'login' => array(
> >              'rule' => 'ruleName',
> >                'required' => true,
> >               'allowEmpty' => false,
> >               'on' => null,
> >                'message' => 'Error message'
> >               ),
>
> > With the required and allowEmpty options, i can validate a "not empty"
> > field. But it´s required to put a rule, and i dont know what rule to
> > put, i dont want any rule! Anybody can help me?
>
> > Thanks.
>
> > On Nov 13, 12:25 pm, mbavio <[EMAIL PROTECTED]> wrote:
>
> > > Hi, I´m reading the Cake´s Manual of 1.2 Version and I have a doubt...
> > > Are the followind ways of validate the same?
>
> > > 1)    'login' => VALID_NOT_EMPTY,
>
> > > 2)    'login' => array(
> > >                 'rule' => 'ruleName',
> > >                 'required' => true,
> > >                 'allowEmpty' => false,
> > >                 'on' => null,
> > >                 'message' => 'Error message'
> > >        ),
>
> > > What I´m trying to learn is if VALID_NOT_EMPTY is the same that
> > > 'required' to true and 'allowEmpty' to false.
>
> > > Thanks.
>
> > > Martin Bavio


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