mirror of
https://github.com/sigmasternchen/MyTube
synced 2025-03-15 04:48:55 +00:00
added custom error pages
This commit is contained in:
parent
fc602b0358
commit
24f2ff4205
3 changed files with 30 additions and 0 deletions
10
templates/bundles/TwigBundle/Exception/error.html.twig
Normal file
10
templates/bundles/TwigBundle/Exception/error.html.twig
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<h1>Oops</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Something went wrong.<br/>
|
||||||
|
Click <a href="{{ path('app_dashboard') }}">here</a> to return to the Dashboard.
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
10
templates/bundles/TwigBundle/Exception/error403.html.twig
Normal file
10
templates/bundles/TwigBundle/Exception/error403.html.twig
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<h1>Forbidden</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
You are not allowed to access this URL.<br/>
|
||||||
|
Click <a href="{{ path('app_dashboard') }}">here</a> to return to the Dashboard.
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
10
templates/bundles/TwigBundle/Exception/error404.html.twig
Normal file
10
templates/bundles/TwigBundle/Exception/error404.html.twig
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<h1>Not Found</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The requested URL could not be found.<br/>
|
||||||
|
Click <a href="{{ path('app_dashboard') }}">here</a> to return to the Dashboard.
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue