OpenCart 🇺🇦

Схема

public mixed index ( )

Аргументы

Аргумент Возможный тип Описание
У метода нет аргументов

Описание

Метод пока еще не документирован.

Исходный код

if (!$this->affiliate->isLogged()) {
	$this->session->data['redirect'] = $this->url->link('affiliate/tracking', '', 'SSL');

	$this->redirect($this->url->link('affiliate/login', '', 'SSL'));
}

$this->language->load('affiliate/tracking');

$this->document->setTitle($this->language->get('heading_title'));

$this->data['breadcrumbs'] = array();

$this->data['breadcrumbs'][] = array(
	'text'      => $this->language->get('text_home'),
	'href'      => $this->url->link('common/home'),
	'separator' => false
);

$this->data['breadcrumbs'][] = array(
	'text'      => $this->language->get('text_account'),
	'href'      => $this->url->link('affiliate/account', '', 'SSL'),
	'separator' => $this->language->get('text_separator')
);

$this->data['breadcrumbs'][] = array(
	'text'      => $this->language->get('heading_title'),
	'href'      => $this->url->link('affiliate/tracking', '', 'SSL'),
	'separator' => $this->language->get('text_separator')
);

$this->data['heading_title'] = $this->language->get('heading_title');

$this->data['text_description'] = sprintf($this->language->get('text_description'), $this->config->get('config_name'));
$this->data['text_code'] = $this->language->get('text_code');
$this->data['text_generator'] = $this->language->get('text_generator');
$this->data['text_link'] = $this->language->get('text_link');

$this->data['button_continue'] = $this->language->get('button_continue');

$this->data['code'] = $this->affiliate->getCode();

$this->data['continue'] = $this->url->link('affiliate/account', '', 'SSL');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/affiliate/tracking.tpl')) {
	$this->template = $this->config->get('config_template') . '/template/affiliate/tracking.tpl';
} else {
	$this->template = 'default/template/affiliate/tracking.tpl';
}

$this->children = array(
	'common/column_left',
	'common/column_right',
	'common/content_top',
	'common/content_bottom',
	'common/footer',
	'common/header'	
);

$this->response->setOutput($this->render());