I am working with symfony 2. I am fetching records from table and sending it to the view: Below is the php code that normally prints each value of the array:
<tbody>
<?php foreach($categories as $row){?>
<tr>
<?php foreach($row as $name => $value){ ?>
<td><?php echo $value;?></td>
<?php }?>
</tr>
<?php }?>
</tbody>
I am trying to do the same with twig:
<tbody>
{% for row in categories %}
<tr>
{% for cell in row %}
<td> </td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
Can anyone please tell me what should i put between to get the result?