Skip to content
This repository was archived by the owner on Jun 6, 2020. It is now read-only.

Latest commit

 

History

History
42 lines (29 loc) · 598 Bytes

File metadata and controls

42 lines (29 loc) · 598 Bytes

Chapter 5. Views

To be able to render content within the admin interface, first of all you need to extends from the HarmonyAdminBundle layout file, like:

{% extends '@HarmonyAdmin/default/layout.html.twig' %}

Page title

{% block content_title %}
    {{ 'page-title'|trans }}
{% endblock %}

Page content

{% block main %}

{% endblock %}

Stylesheets & Javascripts

{% block head_stylesheets %}
  {{ parent() }}
  {# ... #}
{% endblock %}
{% block body_javascript %}
  {{ parent() }}
  {# ... #}
{% endblock %}