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

volt numeric auto increment

how to create numeric autoincrement in volt? i tried in looping {% no++ %}, is error thanks!


You can use "do" to execute any arbitrary expression like that:

{% do no++ %}

It gives error "Unknown expression 279 in " whether i use do or not. I have used loop.index as i just wanted to print the table index :)