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