1: | <?php
|
2: | namespace Opencart\Admin\Controller\Error;
|
3: | |
4: | |
5: | |
6: | |
7: |
|
8: | class NotFound extends \Opencart\System\Engine\Controller {
|
9: | |
10: | |
11: | |
12: | |
13: |
|
14: | public function index(): void {
|
15: | $this->load->language('error/not_found');
|
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', isset($this->session->data['user_token']) ? 'user_token=' . $this->session->data['user_token'] : '')
|
24: | ];
|
25: |
|
26: | $data['breadcrumbs'][] = [
|
27: | 'text' => $this->language->get('heading_title'),
|
28: | 'href' => $this->url->link('error/not_found', isset($this->session->data['user_token']) ? '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/not_found', $data));
|
36: | }
|
37: | }
|
38: | |