Thursday, 15 September 2011

symfony2 - Adding dynamic fields in a form with Symfony 2 -



symfony2 - Adding dynamic fields in a form with Symfony 2 -

let's entity foo has many entities bar. in views/foo/new.html want create many entities bar in same form, allowing user add together many groups of html fields each time user clicks on button "add". when user submits form, want create entities , new foo related bars.

what best approach in symfony2?

you can embedded collection of forms. there pretty documentation @ symfony's website - http://symfony.com/doc/current/cookbook/form/form_collections.html

symfony2

No comments:

Post a Comment