vendredi 30 mai 2014

Using TWIG variables from children template


Vote count:

0




Need to use a variable that ad in the parent template.


I have layout:



<html>
<head>
</head>
<body>
{% set com = 0 %}
{%block content %}DEFALUT CONTENT{% endblock %}
</body>
</html>


And children template:



{% extends '::layout.html.twig' %}
{% block content %}
HOW USE LAYOUT VARIABLE HERE? LIKE: {{ com }}
{% endblock %}


Thanks in advance!



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire