Variable visibility in blocks
Notice: This thread is very old.
- pistols
- Member | 26
Hello there, i have a quite strange behaviour in my latte.
This latte file should show an extra <script> block if there are errors in the form processing. As you can see i define the $errors as a “global” to the latte file.
Later I want to change its value if an error comes up and show the div accordingly. The problem is that the $errors variable in the scripts block always validates as in the definition {var $errors = 0}.
Any ideas what am i doing wrong?