Answers for "fori loop twig"

1

how to for loop twig

{% for i in 0..10 %}
    * {{ i }}
{% endfor %}
Posted by: Guest on April-29-2020
0

twig loop variables

{% for user in users %}
    {{ loop.index }} - {{ user.username }}
{% endfor %}
Posted by: Guest on May-01-2020

Browse Popular Code Answers by Language