How to merge two symfony forms in one refering to the same class -


in project having 2 forms, 1 userform1.php , second userform2.php. use both of these complexe forms without remaking them in form type fulluserform.php.

has tricks ?

i though making fulluserfrom.php fields , use in classes userform1.php , userform2.php options other way.

thanks in advance !

i know don't want create 1 single class, if both form going target same data_class, i'm not sure you're taking best approach.

i think have 1 form , based on data, add required fields , constraints. can done passing options form, or more elegant solution, using eventsubscriber described here:

https://symfony.com/doc/current/form/dynamic_form_modification.html


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -