Le 12/05/2011 09:38, Zolzaya Erdenebaatar a écrit :
Hi guys, I have a collection of entity objects. Now I want to build
following html table structure in twig. How to do it.
<tr>
<td><input type="checkbox" id="check9" /><label
for="check9">Yes</label></td>
<td>A</td>
<td><input type="checkbox" id="check10" /><label
for="check10">Yes</label></td>
<td>B</td>
</tr>
<tr>
<td><input type="checkbox" id="check11" /><label
for="check11">Yes</label></td>
<td>C</td>
<td><input type="checkbox" id="check12" /><label
for="check12">Yes</label></td>
<td>D</td>
</tr>
You probably want to use a for loop:
http://www.twig-project.org/doc/templates.html#for
--
Christophe | Stof
--
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