We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

loop on view phalcon

Hi i just make loop process on view .

example i on (index.volt):

{{ set loop =10 }}

{% for i in loop %} {{ i }} {%endfor%}

I want to result like:

for($i=0;$i<10;$i++){ echo $i; }

Thank\'s Helping me

Regard's

Mike



3.0k
Accepted
answer

{% for i in 1..10 %} {{ i }} {% endfor %}

god it