[+] BO : #PSFV-94 : new class AdminNotFoundControllerCore
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9743 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
4b3c1bca94
commit
401650feaa
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user