How do I set a default value for sfWidgetFormDateTime? I looked here:

http://www.tig12.net/downloads/apidocs/symfony/widget/sfWidgetFormDateTime.class.html

Which made me think I could get away with this:

      $this->widgetSchema['date']->setAttribute('time', time());

But apparently that doesn't work. So what is the correct way?

Trying the above I got this error:

Warning: array_merge(): Argument #2 is not an array in /usr/share/php/
symfony/widget/sfWidget.class.php on line 53 Warning: array_merge():
Argument #1 is not an array in /usr/share/php/symfony/widget/
sfWidgetFormTime.class.php on line 89 Warning: array_merge(): Argument
#2 is not an array in /usr/share/php/symfony/widget/sfWidget.class.php
on line 53 Warning: array_merge(): Argument #1 is not an array in /usr/
share/php/symfony/widget/sfWidget.class.php on line 333 Warning:
array_keys(): The first argument should be an array in /usr/share/php/
symfony/widget/sfWidget.class.php on line 335 Warning: array_values():
The argument should be an array in /usr/share/php/symfony/widget/
sfWidget.class.php on line 335 Warning: array_map(): Argument #2
should be an array in /usr/share/php/symfony/widget/sfWidget.class.php
on line 335 Warning: implode(): Bad arguments. in /usr/share/php/
symfony/widget/sfWidget.class.php on line 335 Warning: array_merge():
Argument #1 is not an array in /usr/share/php/symfony/widget/
sfWidgetFormTime.class.php on line 93 Warning: array_merge(): Argument
#2 is not an array in /usr/share/php/symfony/widget/sfWidget.class.php
on line 53 Warning: array_merge(): Argument #1 is not an array in /usr/
share/php/symfony/widget/sfWidget.class.php on line 333 Warning:
array_keys(): The first argument should be an array in /usr/share/php/
symfony/widget/sfWidget.class.php on line 335 Warning: array_values():
The argument should be an array in /usr/share/php/symfony/widget/
sfWidget.class.php on line 335 Warning: array_map(): Argument #2
should be an array in /usr/share/php/symfony/widget/sfWidget.class.php
on line 335 Warning: implode(): Bad arguments. in /usr/share/php/
symfony/widget/sfWidget.class.php on line 335
--~--~---------~--~----~------------~-------~--~----~
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