From 418b4cff285c273a2a53bd95a548b4b4d2c0b022 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 2 Dec 2012 22:12:40 +0100 Subject: [PATCH] Custom web page error for users and companies. It does not work during development just for production environment. --- apps/companyfront/config/settings.yml | 3 +++ .../modules/customerrors/actions/actions.class.php | 20 ++++++++++++++++++++ .../modules/customerrors/config/view.yml | 20 ++++++++++++++++++++ .../customerrors/templates/error404Success.php | 16 ++++++++++++++++ apps/userfront/config/settings.yml | 3 +++ .../modules/customerrors/actions/actions.class.php | 20 ++++++++++++++++++++ apps/userfront/modules/customerrors/config/view.yml | 20 ++++++++++++++++++++ .../customerrors/templates/error404Success.php | 16 ++++++++++++++++ 8 files changed, 118 insertions(+) create mode 100644 apps/companyfront/modules/customerrors/actions/actions.class.php create mode 100644 apps/companyfront/modules/customerrors/config/view.yml create mode 100644 apps/companyfront/modules/customerrors/templates/error404Success.php create mode 100644 apps/userfront/modules/customerrors/actions/actions.class.php create mode 100644 apps/userfront/modules/customerrors/config/view.yml create mode 100644 apps/userfront/modules/customerrors/templates/error404Success.php diff --git a/apps/companyfront/config/settings.yml b/apps/companyfront/config/settings.yml index f1642a6..59d99c6 100644 --- a/apps/companyfront/config/settings.yml +++ b/apps/companyfront/config/settings.yml @@ -42,3 +42,6 @@ all: secure_module: sfGuardAuth secure_action: secure + + error_404_module: customerrors + error_404_action: error404 diff --git a/apps/companyfront/modules/customerrors/actions/actions.class.php b/apps/companyfront/modules/customerrors/actions/actions.class.php new file mode 100644 index 0000000..23f3df8 --- /dev/null +++ b/apps/companyfront/modules/customerrors/actions/actions.class.php @@ -0,0 +1,20 @@ + 'page not found', 'size' => '48x48')) ?> +

Oops! Page Not Found

+

The server returned a 404 response.

+ + + + + + + + +
+ + + +
diff --git a/apps/userfront/config/settings.yml b/apps/userfront/config/settings.yml index 57a00ba..1fb1f4d 100644 --- a/apps/userfront/config/settings.yml +++ b/apps/userfront/config/settings.yml @@ -42,3 +42,6 @@ all: secure_module: sfGuardAuth secure_action: secure + + error_404_module: customerrors + error_404_action: error404 diff --git a/apps/userfront/modules/customerrors/actions/actions.class.php b/apps/userfront/modules/customerrors/actions/actions.class.php new file mode 100644 index 0000000..23f3df8 --- /dev/null +++ b/apps/userfront/modules/customerrors/actions/actions.class.php @@ -0,0 +1,20 @@ + 'page not found', 'size' => '48x48')) ?> +

Oops! Page Not Found

+

The server returned a 404 response.

+ + + + + + + + +
+ + + +
-- 2.1.4