Controller code:
$em = $this->getEntityManager();
$books = $em->getRepository('Books\Model\Books')->findAll();
return $this->render('Books/View/list.html.twig', array(
'books' => $books
));
Twig template code:
{% extends 'Books/View/layout.html.twig' %}
{% block content %}
<table>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
{% for row in books %}
<tr>
<td>{{ row.name }}</td>
<td>{{ row.description }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
I don't know why I don't see nothing in cell's designed for name and description. When I open developer console and look into html tree I see this cell's but empty..