Back to Opencart

File catalog\controller\error\exception.php

docs/api/source-catalog.controller.error.exception.html

4.1.0.34.4 KB
Original Source

Namespaces

Classes

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

OpenCart API API documentation generated by ApiGen dev-master