We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

for statement

How to do in Volt Template Engine for php statement for($i=0;$i<10;$i++)



40.8k
Accepted
answer

for your example

<ul>
{% for i in 0..10 %}
    <li> {{ i }} </li>
{% endfor %}
</ul>