From 15580f06a57b5b63f4d3a7938450315e1d2f9bb5 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Mon, 31 Oct 2011 10:36:17 +0000 Subject: [PATCH] [+] BO : #PSFV-94 : new class AdminNotFoundControllerCore --- admin-dev/themes/template/not_found/content.tpl | 5 +++++ controllers/admin/AdminNotFoundController.php | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 admin-dev/themes/template/not_found/content.tpl create mode 100644 controllers/admin/AdminNotFoundController.php diff --git a/admin-dev/themes/template/not_found/content.tpl b/admin-dev/themes/template/not_found/content.tpl new file mode 100644 index 000000000..1a46b3c27 --- /dev/null +++ b/admin-dev/themes/template/not_found/content.tpl @@ -0,0 +1,5 @@ +

{l s='The controller'} {$controller} {l s='is missing or invalid. '}

+ diff --git a/controllers/admin/AdminNotFoundController.php b/controllers/admin/AdminNotFoundController.php new file mode 100644 index 000000000..9d91c0da3 --- /dev/null +++ b/controllers/admin/AdminNotFoundController.php @@ -0,0 +1,13 @@ +_errors[] = Tools::displayError('Controller not found'); + $tpl_vars['controller'] = Tools::getvalue('controller'); + + $this->context->smarty->assign($tpl_vars); + parent::initContent(); + } +}