mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-03 01:25:04 +00:00
11 lines
282 B
Plaintext
11 lines
282 B
Plaintext
--TEST--
|
|
"parent" cannot be called outside of a block
|
|
--TEMPLATE--
|
|
{% extends "parent.twig" %}
|
|
{{ parent() }}
|
|
--TEMPLATE(parent.twig)--
|
|
--DATA--
|
|
return []
|
|
--EXCEPTION--
|
|
Twig\Error\SyntaxError: Calling the "parent" function outside of a block is forbidden in "index.twig" at line 3.
|