Twig Access Array Index?

Just before posting this I realized, that’s exactly what you can do, but as I didn’t find the answer anywhere in the docs or google (correct me if I’m wrong), I’ve posted this anyway. {{numbers[0]}}

Increment value in twig file

Use this: {% set myVal = 50 %} {% for item in items %} {% set myVal = myVal + 10 %} {% endfor %} For declaring, setting values, setting blocks/forms, etc. you must use {% %}. For output, there is {{ }}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)