0

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,

2
  • Just create the new class. Or am I missing something? Commented Jul 19, 2010 at 13:28
  • But I will need to set the classname somewhere so that symfony knows when creating the BaseForm not to create the default widget however use mine instead Commented Jul 19, 2010 at 13:32

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.