Hello List,

I am new to symfony2 and I work on my first project with it.

It is great and the documentation helped a lot, but for a few days, I
have two problems I can't fix:

1) I have a table with settings. it consists of key-value-pairs and I
want to show the 20 rows on one page and make it possible to edit them.

I tried to generate a form for each and add it to a first form, but
every subform overwrites the previous in the foreach loop.

At the end there is only the last object in the form (1 value, 1 key)

Any ideas? How can I define the unique name[1]? I think when the name is
changed, eveything should work (I have to bind the forms to the objects,
but this should be easy...


2) I have a table with products. I want to show them all on one page and
give the user the chance to put the product in the cart. The problem
here is, that every form has the same ids in the form-fields, like
form_id, form_text, etc.

Thank you very much for every hint.

Best regards
Fabian



[1]http://api.symfony.com/2.0/Symfony/Component/Form/FormBuilder.html#add%28%29
-- 
Fabian Blechschmidt

Crailsheimer Str. 10
D - 12247 Berlin
Tel: +49 (0) 30 419 932 55
Handy: +49 (0)176 666 55 256
E-Mail: fabian.bl...@gmx.de

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to