PHP Classes

File: templates/bundles/TwigBundle/Exception/error.html.twig

Recommend this page to a friend!
  Classes of Manolo Salsas  >  Symfony Create Bundle Skeleton  >  templates/bundles/TwigBundle/Exception/error.html.twig  >  Download  
File: templates/bundles/TwigBundle/Exception/error.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: 2 years ago
Size: 921 bytes


Class file image Download
    This template is used to render any error different from 403, 404 and 500.

    This is the simplest way to customize error pages in Symfony applications.
    In case you need it, you can also hook into the internal exception handling
    made by Symfony. This allows you to perform advanced tasks and even recover
    your application from some errors.

{% extends 'base.html.twig' %}

{% block body_id 'error' %}

{% block main %}
    <h1 class="text-danger">{{ ''|trans({ '%status_code%': status_code }) }}</h1>

    <p class="lead">
        {{ 'http_error.description'|trans({ '%status_code%': status_code }) }}
        {{ 'http_error.suggestion'|trans({ '%url%': path('blog_index') })|raw }}
{% endblock %}

{% block sidebar %}
    {{ parent() }}

    {{ show_source_code(_self) }}
{% endblock %}
For more information send a message to info at phpclasses dot org.