I'm using sfWidgetFormDate with a datepicker (http://
garakkio.altervista.org/datepicker/)

The code in the form is:

$years = range(date("Y"),1980);
$this->widgetSchema['date_const'] = new sfWidgetFormDate(array('years'
=> array_combine($years, $years),'format' => '%day% - %month% - %year
%'));


My problem is when i open the datepicker the default date  selected on
the datepicker is always on the lowest. In this case the datepicker
will be opened on the year of 1980, while i want it in 2010.

Anyone knows how can i change this?

Cheers.


(PS: even if i change the positions, range(1980,date("Y")); the lower
year come always first)

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to