I told you i already read the documentation and still isnt working.
'data_create' => array( 'rule' => 'date',
'message' => 'Enter a valid date in
YY-MM-DD format.',
'allowEmpty' => false
),
The script returns the 'Enter a valid date in YY-MM-DD format.'
On 10 jun, 16:18, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> > I dont want do allow empty.
>
> Then put 'allowEmpty' => false and please read the documentation.
>
> > Thevalidationdont work.
>
> > On 10 jun, 15:30, John David Anderson <[EMAIL PROTECTED]>
> > wrote:
> >> On Jun 10, 2008, at 12:01 PM, GreyWolf wrote:
>
> >> > It's 1.2
> >> > Yes, i've looked.
> >> > The documentation for datavalidationisnt good, i didnt figure it how
> >> > to validatedate.
> >> > ;~~
>
> >> Look in the "date" section:
>
> >>http://book.cakephp.org/view/140/date
>
> >> ?
>
> >> -- John
>
> >> > On 9 jun, 14:23, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> >> >> On Mon, Jun 9, 2008 at 12:56 PM, GreyWolf <[EMAIL PROTECTED]>
> >> >> wrote:
> >> >>> What's wrong? Thanks.
>
> >> >> What version of CakePHP are you using? If you're using 1.2, have you
> >> >> looked at this:
>
> >> >>http://book.cakephp.org/view/125/data-validation
>
> >> >> --
> >> >> 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
-~----------~----~----~----~------~----~------~--~---