Symfony2 / Twig - getting array from dynamic array key
You can use the attribute function.
{{ attribute(another_array, the_index) }}
The fastest way:
{% for key,value in array %}
{{ another_array[key] }}
{% endfor %}
You can use the attribute function.
{{ attribute(another_array, the_index) }}
The fastest way:
{% for key,value in array %}
{{ another_array[key] }}
{% endfor %}