On 9 Ott, 17:04, axel at <[email protected]> wrote: > hello list, > > 1) is there a way to make sfWidgetFormJQueryDate the default widgets > for datetime fields in autogenerated code (Base*Form.classes) > > eg: > class BaseTutorialForm extends BaseFormDoctrine > { > public function setup() > { > $this->setWidgets(array( > 'id' => new sfWidgetFormInputHidden(), > .... > 'created_at' => new sfWidgetFormJQueryDate > (sfConfig::get('sf_date_widget_settings')), > > ....
You should avoid to use such plugin, since it's a bad idea to mix php/ html and javascript. Javascript should be provided only by other Javascript code. You can give a try to my pure Javascript solution: http://garakkio.altervista.org/datepicker/ -- 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.
