From b03bac18d654b0e20cadce63718fd4dbd7d770d2 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Mon, 18 Nov 2013 11:32:17 +0100 Subject: [PATCH] assets in modules --- .../modules/TheliaDebugBar/Config/routing.xml | 9 +++++++++ .../Admin/TheliaDebguBarController.php | 18 ++++++++++++++++++ .../backoffice/default/tdb-index.html | 10 +++++++++- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 local/modules/TheliaDebugBar/Config/routing.xml create mode 100644 local/modules/TheliaDebugBar/Controller/Admin/TheliaDebguBarController.php diff --git a/local/modules/TheliaDebugBar/Config/routing.xml b/local/modules/TheliaDebugBar/Config/routing.xml new file mode 100644 index 000000000..14361a729 --- /dev/null +++ b/local/modules/TheliaDebugBar/Config/routing.xml @@ -0,0 +1,9 @@ + + + + + TheliaDebugBar\Controller\Admin\TheliaDebugBarController::indexAction + + \ No newline at end of file diff --git a/local/modules/TheliaDebugBar/Controller/Admin/TheliaDebguBarController.php b/local/modules/TheliaDebugBar/Controller/Admin/TheliaDebguBarController.php new file mode 100644 index 000000000..e09ae6243 --- /dev/null +++ b/local/modules/TheliaDebugBar/Controller/Admin/TheliaDebguBarController.php @@ -0,0 +1,18 @@ +checkAuth(self::RESOURCE_CODE, array(), AccessManager::VIEW)) return $response; + + // Render the edition template. + return $this->render('tdb-index'); + } +} \ No newline at end of file diff --git a/local/modules/TheliaDebugBar/templates/backoffice/default/tdb-index.html b/local/modules/TheliaDebugBar/templates/backoffice/default/tdb-index.html index 5e1c309da..c72b43b01 100644 --- a/local/modules/TheliaDebugBar/templates/backoffice/default/tdb-index.html +++ b/local/modules/TheliaDebugBar/templates/backoffice/default/tdb-index.html @@ -1 +1,9 @@ -Hello World \ No newline at end of file +{extends file="general_error.html"} + +{block name="page-title"}{intl l='Page not found'}{/block} +{block name="content-title"}{intl l='Page not found'}{/block} + +{block name="error-message"} +

{intl l='The server returned a "404 Not Found"'}

+

{intl l='The page you\'ve requested was not found. Please check the page address, and try again.'}

+{/block} \ No newline at end of file