1: | <?php
2: | namespace Opencart\Admin\Controller\Error;
3: | /**
4: | * Class Permission
5: | *
6: | * @package Opencart\Admin\Controller\Error
7: | */
8: | class Permission extends \Opencart\System\Engine\Controller {
9: | /**
10: | * Index
11: | *
12: | * @return void
13: | */
14: | public function index(): void {
15: | $this->load->language('error/permission');
16: |
17: | $this->document->setTitle($this->language->get('heading_title'));
18: |
19: | $data['breadcrumbs'] = [];
20: |
21: | $data['breadcrumbs'][] = [
22: | 'text' => $this->language->get('text_home'),
23: | 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'])
24: | ];
25: |
26: | $data['breadcrumbs'][] = [
27: | 'text' => $this->language->get('heading_title'),
28: | 'href' => $this->url->link($this->request->get['route'], 'user_token=' . $this->session->data['user_token'])
29: | ];
30: |
31: | $data['header'] = $this->load->controller('common/header');
32: | $data['column_left'] = $this->load->controller('common/column_left');
33: | $data['footer'] = $this->load->controller('common/footer');
34: |
35: | $this->response->setOutput($this->load->view('error/permission', $data));
36: | }
37: | }
38: |

OpenCart API API documentation generated by ApiGen dev-master