V
V
Vasily2014-01-18 21:56:42
Zend Framework
Vasily, 2014-01-18 21:56:42

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

2 answer(s)
R
Rowdy Ro, 2014-01-18
@rowdyro

Store everything in json

S
Shirshov Alexander, 2014-01-20
@Keanor

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 question

Ask a Question

731 491 924 answers to any question