[+] BO : #PSFV-94 : new class AdminNotFoundControllerCore
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user