[+] BO : #PSFV-94 : new class AdminNotFoundControllerCore

This commit is contained in:
mMarinetti committed 2011-10-31 10:36:17 +00:00
1 parent 01f88ad0d7
commit 15580f06a5
2 files changed
+18

No files matched your search

@@ -0,0 +1,5 @@
<h1>{l s='The controller'} {$controller} {l s='is missing or invalid. '}</h1>
<ul>
<li><a href="index.php">{l s='Go to Dashboard'}</a></li>
<li><a href="#" onclick="window.history.back();">{l s='Back to previous page'}</a></li>
</ul>
@@ -0,0 +1,13 @@
<?php
class AdminNotFoundControllerCore extends AdminController
{
public function initContent()
{
$this->_errors[] = Tools::displayError('Controller not found');
$tpl_vars['controller'] = Tools::getvalue('controller');
$this->context->smarty->assign($tpl_vars);
parent::initContent();
}
}