I use this and it works:
$this->widgetSchema['data'] = new sfWidgetFormJQueryDate(array(
'format' => '%year%-%month%-%day%',
'culture' => 'pl',
'image' => '"/images/cal.gif"'
));
On 10 Lut, 22:44, elliesdad <[email protected]> wrote:
> Hello.
>
> I have posted this to the forums but unfortunately I have been unable
> to resolve the issue despite some helpful people posting.
>
> I am unable to get the datepicker widget to display an image which can
> be clicked on to bring up the calendar.
>
> I am trying the following:
>
> $this->widgetSchema['created_at'] = new sfWidgetFormJQueryDate(array
> ('image' => sfConfig::get('sf_web_dir')."/images/calendar.png"));
>
> This does not work and results in the default button (the one that
> makes the calendar appear) disappearing.
>
> Could anyone confirm how I should be using the 'image' aspect of the
> widget (i.e. displaying a tiny calendar image next to the widget that,
> when clicked, causes the rich calendar control to pop up) as I am
> struggling?
>
> Thanks for your time.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---