Fix controller access denied page design

This commit is contained in:
Abhishek Kumar
2022-05-18 11:58:19 +05:30
parent 0954235b04
commit 16fb5e069a
2 changed files with 17 additions and 0 deletions

View File

@@ -2245,6 +2245,20 @@ class AdminControllerCore extends Controller
$this->layout = 'invalid_token.tpl';
}
public function setAccessDeniedPageVars()
{
$breadcrumbs2 = array(
'container' => array('name' => $this->l('Access denied'), 'href' => '#'),
'tab' => array('name' => '', 'href' => ''),
);
$this->show_page_header_toolbar = true;
$this->context->smarty->assign(array(
'title' => $this->l('Access denied'),
'toolbar_btn' => array(),
'breadcrumbs2' => $breadcrumbs2,
));
}
/**
* Assign smarty variables for the footer
*/