I read the volt documentation on the phalcon page and I cannot find any example for this ...
You can create simple loops in objects, for example in php:
foreach($pages as $page){ echo $page->title; }
in volts it will be ...
{% for page in pages %} {{ page.title }} {% endfor %}
My question is, how can I make a normal digital loop in volts? For instance:
for($n=1;$n<10;$n++){ echo $n; }
Thanks.
source share