I have array like this:
array(
'id' => 1,
'children' => array(
'id' => 5,
'children' =>
array(
'id' => 6,
'children' => 'none',
),
array(
'id' => 8,
'children' => array(...),
)
)
)
with php code can call Recursive Function to echo it. but in twig i can't call Recursive Function.
{% for category in categories %}
<div class="category">
<div class="id">{{ category.id }}</div>
</div>
{% endfor %}
my code just print first level of array and not other!