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