You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% for x in 1..2 %}
{% for y in 1..2 %}
[{{loop.parent.loop.index}} {{loop.index}}]
{% endfor %}
{% endfor %}
Steps to reproduce
Brand new Craft install (3.1.27)
Create a twig template with that content
Error is:
Key "loop" for array with keys "view, devMode, SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC, SORT_STRING, SORT_LOCALE_STRING, SORT_NATURAL, SORT_FLAG_CASE, POS_HEAD, POS_BEGIN, POS_END, POS_READY, POS_LOAD, isInstalled, loginUrl, logoutUrl, now, craft, currentUser, systemName, currentSite, siteName, siteUrl, _parent, _seq, x, _key" does not exist.
Additional info
Craft version: 3.1.27
PHP version: 7.0.13
Twig version: 2.8.1
Plugins & versions: none
Looking at the compiled template, and comparing it to the compiled template from twigfiddle it is pretty clear what is going wrong. compiledTemplateComparison.zip
The text was updated successfully, but these errors were encountered:
Description
This used to work, and does work in twigfiddle:
Steps to reproduce
Additional info
Looking at the compiled template, and comparing it to the compiled template from twigfiddle it is pretty clear what is going wrong.
compiledTemplateComparison.zip
The text was updated successfully, but these errors were encountered: