From 9925d4f57c612be8bc2e23949f226611ac816ecf Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 15 Oct 2023 23:02:28 +0300 Subject: [PATCH] implement 404, 500 error pages #20 --- .../TwigBundle/Exception/error404.html.twig | 14 ++++++++++++++ .../TwigBundle/Exception/error500.html.twig | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 templates/bundles/TwigBundle/Exception/error404.html.twig create mode 100644 templates/bundles/TwigBundle/Exception/error500.html.twig diff --git a/templates/bundles/TwigBundle/Exception/error404.html.twig b/templates/bundles/TwigBundle/Exception/error404.html.twig new file mode 100644 index 0000000..034036c --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error404.html.twig @@ -0,0 +1,14 @@ +{% extends theme ~ '/layout.html.twig' %} +{% block title %}{{ 'Not found' | trans }} - {{ name }}{% endblock %} +{% block main_content %} +
+
+

+ 404 +

+
+ {{ 'Requested page not found!' | trans }} +
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/bundles/TwigBundle/Exception/error500.html.twig b/templates/bundles/TwigBundle/Exception/error500.html.twig new file mode 100644 index 0000000..8567d21 --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error500.html.twig @@ -0,0 +1,17 @@ +{% extends theme ~ '/layout.html.twig' %} +{% block title %}{{ 'Error' | trans }} - {{ name }}{% endblock %} +{% block main_content %} +
+
+

+ {{ 'Oops!' | trans }} +

+
+ {{ 'Internal server error' | trans }} +
+ + {{ 'Report' | trans }} + +
+
+{% endblock %} \ No newline at end of file