PHP Classes

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

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

Contents

Class file image Download
--TEST-- "for" tag adds a loop variable to the context locally --TEMPLATE-- {% for item in items %} {% endfor %} {% if loop is not defined %}WORKS{% endif %} --DATA-- return array('items' => array()) --EXPECT-- WORKS