Hi,
i have this widget and this validator
'fecha_nac' => new sfWidgetFormDate(array('years' => range(1900,
date('Y')))),
'fecha_nac' => new sfValidatorDate (array('min' => "01-01-1990",
'required' => 'Your born date is required.')),
When i choose in the form for example 04/03/1906
I get this
*array*
'month'=> string '4' /(length=1)/
'day'=> string '3' /(length=1)/
'year'=> string '6' /(length=1)/
in
class sfValidatorDate extends sfValidatorBase
{
protected function doClean($value)
{
var_dump($value);
But i was expecting this to operate my form correctly:
*array*
'month'=> string '4' /(length=1)/
'day'=> string '3' /(length=1)/
'year'=> string '1906' /(length=1)/
Any idea?
--
Javi
Ubuntu 8.04
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en