Latte variable increment ends with Parse Error, Nette 2.2.2
Notice: This thread is very old.
- ajda2
- Member | 66
Hi, I have found issue when I have tried increment variable in latte
template.
If a do this in template
<?php
{var $i = 0}
{var $i++}
?>
It will ends with Parse Error: syntax error, unexpected ‘=’
Incrementing like this in Nette > 2.1 worsk fine.
Here is template file
https://dl.dropboxusercontent.com/…efault.latte
And here is Tracy output
https://dl.dropboxusercontent.com/…%20Error.htm