Hi,

I'm trying to display the time fields with sfWidgetFormJQueryDate
without having to rewrite a template. Here's my code (lib/form/
doctrine/ModuleForm.php) :

                $dateWidget = new sfWidgetFormDate(array(
                  'format' => '%day%/%month%/%year%'
                ));

          $jqueryDateConfig = array(
                  'image' => '/images/admin/calendar_view_day.png',
                  'date_widget' => $dateWidget,
                  'config' => "{changeYear: true, changeMonth: true,}",
                  'culture' => sfContext::getInstance()->getUser()->getCulture()
                );

          $this->widgetSchema['begin_date'] = new
sfWidgetFormJQueryDate($jqueryDateConfig);

          $this->widgetSchema['end_date'] = new
sfWidgetFormJQueryDate($jqueryDateConfig);



I've tried without the "date_widget" option, and it's the same
result : Fields for the date but not for the time.

And if I try to change 'date_widget' option with a
sfWidgetFormDateTime, I get this notice :

Warning: min() [function.min]: When only one parameter is given, it
must be an array in G:\wamp\www\_abrakam\metropole\plugins
\sfFormExtraPlugin\lib\widget\sfWidgetFormJQueryDate.class.php  on
line 128

Warning: max() [function.max]: When only one parameter is given, it
must be an array in G:\wamp\www\_abrakam\metropole\plugins
\sfFormExtraPlugin\lib\widget\sfWidgetFormJQueryDate.class.php on line
128
%day%/%month%/%year%


And only the time fields are displayed.



Does anybody have an idea ?


Thanks !

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

Reply via email to