// This Controller needs a toolbar and a title
This commit is contained in:
1 parent
3eb9a7e772
commit
51e962195c
1 file changed
+8
@@ -26,6 +26,13 @@
|
|||||||
|
|
||||||
class AdminNotFoundControllerCore extends AdminController
|
class AdminNotFoundControllerCore extends AdminController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->bootstrap = true;
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
public function checkAccess()
|
public function checkAccess()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@@ -38,6 +45,7 @@ class AdminNotFoundControllerCore extends AdminController
|
|||||||
|
|
||||||
public function initContent()
|
public function initContent()
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->errors[] = Tools::displayError('Controller not found');
|
$this->errors[] = Tools::displayError('Controller not found');
|
||||||
$tpl_vars['controller'] = Tools::getvalue('controllerUri', Tools::getvalue('controller'));
|
$tpl_vars['controller'] = Tools::getvalue('controllerUri', Tools::getvalue('controller'));
|
||||||
$this->context->smarty->assign($tpl_vars);
|
$this->context->smarty->assign($tpl_vars);
|
||||||
|
|||||||
Reference in new issue
Block a user