Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



979
Accepted
answer

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

god it