PHP Classes

File: templates/admin/layout.html.twig

Recommend this page to a friend!
  Classes of Manolo Salsas   Symfony Create Bundle Skeleton   templates/admin/layout.html.twig   Download  
File: templates/admin/layout.html.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Symfony Create Bundle Skeleton
Application to create reusable Symfony Bundles
Author: By
Last change:
Date: 4 years ago
Size: 1,037 bytes
 

Contents

Class file image Download
{# This is the base template of the all backend pages. Since this layout is similar to the global layout, we inherit from it to just change the contents of some blocks. In practice, backend templates are using a three-level inheritance, showing how powerful, yet easy to use, is Twig's inheritance mechanism. See https://symfony.com/doc/current/templates.html#template-inheritance-and-layouts #} {% extends 'base.html.twig' %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('admin') }} {% endblock %} {% block javascripts %} {{ parent() }} {{ encore_entry_script_tags('admin') }} {% endblock %} {% block header_navigation_links %} <li> <a href="{{ path('admin_post_index') }}"> <i class="fa fa-list-alt" aria-hidden="true"></i> {{ 'menu.post_list'|trans }} </a> </li> <li> <a href="{{ path('blog_index') }}"> <i class="fa fa-home" aria-hidden="true"></i> {{ 'menu.back_to_blog'|trans }} </a> </li> {% endblock %}