Hi!
I suddenly ran into a problem with iterators. I have one loop in one file that does this:
{% for exercise in page.items %}
And inside that loop I call a partial:
<?php $this->partial("shared/view-exercise-in-list"); ?>
Inside the partial I have again a loop:
{% for exercise_name in exercise_names %}
And now the iterators generated by the two files:
<?php $v174897676652324318951iterated = false; ?><?php $v174897676652324318951iterator = $page->items; ...
and
<?php $v174897676652324318951iterator = $exercise_names;
So the iterators are exactly the same. In fact, all iterators generated in one generator run (for the same request) all over the place are exactly the same. Iterators for another request are different but same between themselves. What could be the problem here?
I only noticed the problem when I removed the cache files. Apparently, the old generated files were correct but now the generation does not work properly and generates the same name for all iterators.
Thanks for ideas in advance,
Albert