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!

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.

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.