Re: How i do date validation?
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 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 -~--~~~~--~~--~--~---
Re: How i do date validation?
> I dont want do allow empty. Then put 'allowEmpty' => false and please read the documentation. > The validation dont 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 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 -~--~~~~--~~--~--~---
Re: How i do date validation?
I've alread looked. I dont want do allow empty. The validation dont 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 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 -~--~~~~--~~--~--~---
Re: How i do date validation?
On Jun 10, 2008, at 12:01 PM, GreyWolf wrote: > > It's 1.2 > Yes, i've looked. > The documentation for data validation isnt good, i didnt figure it how > to validate date. > ;~~ 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 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 -~--~~~~--~~--~--~---
Re: How i do date validation?
It's 1.2 Yes, i've looked. The documentation for data validation isnt good, i didnt figure it how to validate date. ;~~ 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 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 -~--~~~~--~~--~--~---
Re: How i do date validation?
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 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 -~--~~~~--~~--~--~---
How i do date validation?
Hi. I tried that way: 'date_create' => array('rule'=>array('date', 'dmy')), 'date_show' => array('date'), And in the view echo $form->input('data_create', array('dateFormat'=>'DMY', 'timeFormat'=>'none')); echo $form->input('data_show'); What's wrong? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---