1: | <?php
2: | namespace Opencart\Admin\Controller\Error;
3: | /**
4: | * Class Exception
5: | *
6: | * @package Opencart\Admin\Controller\Error
7: | */
8: | class Exception extends \Opencart\System\Engine\Controller {
9: | /**
10: | * Index
11: | *
12: | * @param string $message
13: | * @param string $code
14: | * @param string $file
15: | * @param string $line
16: | *
17: | * @return void
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: |

OpenCart API API documentation generated by ApiGen dev-master