> On Jan 26, 2:38 pm, stig <[email protected]> wrote:
>
> > In the 2.0 manual. Caused some 
> > headache.http://book.cakephp.org/2.0/en/models/data-validation.html
> > -> Validation::datetime says to  specify datetime format as
> > array('datetime', 'dmy'), when really it's supposed to be
> > array('datetime' => 'dmy')

Actually, I was wrong. It's supposed to be array('datetime', 'dmy'). I
just had some trouble with this, because even though you have
specified a format like ('DMY') in your FormHelper::input in the View,
$validation in Model still receives YMD. Is this expected behavior?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to