Blog posts tagged with form

Displaying Symfony form fields recursively

Let's say you want to build a form where there are several nested fieldsets that are accessed with JavaScript tabs. Displaying such a form cannot be achieved by echoing the form object. The logical way here would be iterating through the field schema and outputting rows one by one. The problem is that Symfony so far does not provide built in iteration mechanism for form objects.

© 2003 — 2018 Akinas
All rights reserved