PHP Classes

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

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/tags/for/inner_variables.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/tags/for/inner_variables.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: 294 bytes
 

Contents

Class file image Download
--TEST-- "for" tag does not reset inner variables --TEMPLATE-- {% for i in 1..2 %} {% for j in 0..2 %} {{k}}{% set k = k+1 %} {{ loop.parent.loop.index }} {% endfor %} {% endfor %} --DATA-- return array('k' => 0) --EXPECT-- 0 1 1 1 2 1 3 2 4 2 5 2