On 17 Ago, 13:50, wueb <webmaster....@gmail.com> wrote:
> 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)

I'm the author (garakkio).
I advice you to use instead http://garakkio.altervista.org/datepickerui/
, that is more advanced, and automatically set the date to current
one, if date is empty.
Otherwise, you have to set the default date to the current one on
yourself.
The behaviour of calendar is to show the selected date when datepicker
is opened.

cheers
Massimiliano

-- 
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