Search code examples
formssymfony1labelrequired

symfony form label from required widget with stars


I'm searching the best way to output a label of a widget with a star (*) if this widget is required. It should be automatic.

I didn't find any way to do it :(


Solution

  • One way to do this is to use a custom form formatter.