Skip to content

Instantly share code, notes, and snippets.

@KaiCMueller
Last active July 3, 2018 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaiCMueller/b13fdd5ba83ae5e2ace4d0e10dd029aa to your computer and use it in GitHub Desktop.
Save KaiCMueller/b13fdd5ba83ae5e2ace4d0e10dd029aa to your computer and use it in GitHub Desktop.
Extending the EasyAdmin core template
{# this template is located in templates/bundles/EasyAdminBundle/default/layout.html.twig #}
{# pay attention to the "!" in front of the bundle name which tells symfony to use the core template #}
{% extends '@!EasyAdmin/default/layout.html.twig' %}
{% block head_javascript %}
{{ parent() }}
{% block application_javascript %}{% endblock application_javascript %}
{% endblock head_javascript %}
@KaiCMueller
Copy link
Author

The use of the exclamation mark syntax was introduced in Symfony 3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment