From 24f2ff420580cbb10a0f8afea7b0f7051d0d8eb4 Mon Sep 17 00:00:00 2001 From: overflowerror Date: Mon, 18 Jan 2021 18:47:47 +0100 Subject: [PATCH] added custom error pages --- templates/bundles/TwigBundle/Exception/error.html.twig | 10 ++++++++++ .../bundles/TwigBundle/Exception/error403.html.twig | 10 ++++++++++ .../bundles/TwigBundle/Exception/error404.html.twig | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 templates/bundles/TwigBundle/Exception/error.html.twig create mode 100644 templates/bundles/TwigBundle/Exception/error403.html.twig create mode 100644 templates/bundles/TwigBundle/Exception/error404.html.twig diff --git a/templates/bundles/TwigBundle/Exception/error.html.twig b/templates/bundles/TwigBundle/Exception/error.html.twig new file mode 100644 index 0000000..13396e6 --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error.html.twig @@ -0,0 +1,10 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Oops

+ +

+ Something went wrong.
+ Click here to return to the Dashboard. +

+{% endblock %} \ No newline at end of file diff --git a/templates/bundles/TwigBundle/Exception/error403.html.twig b/templates/bundles/TwigBundle/Exception/error403.html.twig new file mode 100644 index 0000000..ac62fa0 --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error403.html.twig @@ -0,0 +1,10 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Forbidden

+ +

+ You are not allowed to access this URL.
+ Click here to return to the Dashboard. +

+{% endblock %} \ No newline at end of file diff --git a/templates/bundles/TwigBundle/Exception/error404.html.twig b/templates/bundles/TwigBundle/Exception/error404.html.twig new file mode 100644 index 0000000..8a8b43d --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error404.html.twig @@ -0,0 +1,10 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Not Found

+ +

+ The requested URL could not be found.
+ Click here to return to the Dashboard. +

+{% endblock %} \ No newline at end of file