0

Hi,
I was reading on the net and could not find how to implement as loop something like
twig's

<ul id="navigation">
        {% for item in navigation %}
            <li><a href="{{ item.href }}">{{ item.caption }}</a></li>
        {% endfor %}
  </ul>

I want to have idea of what is going on!

3
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by Stefano Mtangoo
0

If my guess is right, we can use a Dot notation array access class. In addition, an array can be nested within an array deeper than what we can normally do without the dot notation class.

Then we can implement the loop the way twig and smarty implement their loops.

0

If my guess is right, we can use a Dot notation array access class. In addition, an array can be nested within an array deeper than what we can normally do without the dot notation class.

Then we can implement the loop the way twig and smarty implement their loops.

I have not understood what you have said. can you elaborate?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.