PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/tags/for/recursive.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/tags/for/recursive.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/tags/for/recursive.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 360 bytes
 

Contents

Class file image Download
--TEST-- "for" tags can be nested --TEMPLATE-- {% for key, item in items %} * {{ key }} ({{ loop.length }}): {% for value in item %} * {{ value }} ({{ loop.length }}) {% endfor %} {% endfor %} --DATA-- return array('items' => array('a' => array('a1', 'a2', 'a3'), 'b' => array('b1'))) --EXPECT-- * a (2): * a1 (3) * a2 (3) * a3 (3) * b (2): * b1 (1)