We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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>