{% extends "TwigBundle::layout.html.twig" %} {% block head %} {% endblock %} {% block title 'Demo Bundle' %} {% block body %} {% for flashMessage in app.session.flashbag.get('notice') %}
Notice: {{ flashMessage }}
{% endfor %} {% block content_header %}
{% endblock %}
{% block content %}{% endblock %}
{% if code is defined %}

Code behind this page

{{ code|raw }}
{% endif %} {% endblock %}