main_form['sub_form']['field_to_show'] Best Ing. Reynier Pérez Mira Dirección Técnica IP
> -----Original Message----- > From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] > On Behalf Of Steve the Canuck > Sent: Thursday, May 07, 2009 5:13 PM > To: symfony users > Subject: [symfony-users] Syntax for embedded forms > > > I have embedded one form in another. What's the syntax for accessing > the field? > > For example, I have ConsumerForm embedded in UserForm. The consumer > has a first_name field. > > I've tried: > > first_name > consumer_first_name > consumer[first_name] > > in my templates, but none of them work. > > Thanks for your help. > > Steve > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---