PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/import_with_reserved_nam.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/import_with_reserved_nam.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/import_with_reserved_nam.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 283 bytes
 

Contents

Class file image Download
--TEST-- "from" tag with reserved name --TEMPLATE-- {% import 'forms.twig' as macros %} {{ macros.parent() }} --TEMPLATE(forms.twig)-- --DATA-- return array() --EXCEPTION-- Twig_Error_Syntax: "parent" cannot be called as macro as it is a reserved keyword in "index.twig" at line 4.