开发者

Symfony change class name for widget used when generating forms

开发者 https://www.devze.com 2023-01-07 17:41 出处:网络
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 data

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 sfWidg开发者_运维技巧etFormDateTime() widget however I would like it to generate a widget from a class which I provide, ie. sfWidgetCustomFormDateTime().

Anyone got any ideas?

Thanks,


This is how you do it Symfony forms: how to change default widget for form generation

0

精彩评论

暂无评论...
验证码 换一张
取 消