tags:

views:

56

answers:

1

I have a little question re Symfony and the automatic creation of forms.

Basically what I need to do is to change the class name of the widget which gets used when creating a representation of a database field of type data/time.
Currently its creating a sfWidgetFormDateTime() widget however I would like it to generate a widget from a class which I provide, ie. sfWidgetCustomFormDateTime().

Anyone got any ideas?

Thanks,

A: 

This is how you do it http://stackoverflow.com/questions/2881379/symfony-forms-how-to-change-default-widget-for-form-generation/2895321#2895321

johnwards
thanks, worked even for Propel (with minor adjustments)
vincent