Answer the question
In order to leave comments, you need to log in
How to implement form output?
Task: site - bulletin board. There are many categories and subcategories. The problem is that each subcategory has its own form and all this set of forms has quite big differences. I do everything with Ajax.
Tell me how best to implement the output of forms with the subsequent saving of data, maybe there is some kind of architectural pattern suitable, or does anyone have a solution / idea how to implement it beautifully
Answer the question
In order to leave comments, you need to log in
We also have quite complex forms, we use Form\Element\Collection containing fieldsets and fields, sometimes several levels of nesting. All fieldsets are hydrated (Doctrine2), so there are no problems with saving. Forms are also filled with a hydrator when the bind method of the main form is called.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question