Здравствуйте форумчане!
Создаю отдельную страницу.
Скажите что не так сделано.
Выводится пустая станица с ошибкой:
Notice: Error: Could not load template /home/c/ct55241/DOORSASSORTI/public_html/catalog/view/theme/newstore/template/product/newproducts.tpl! in /home/c/ct55241/DOORSASSORTI/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_loader.php on line 86
За основу были взяты home. php и home.tpl
newproducts.php
<?php
class ControllerProductNewproducts extends Controller {
public function index() {
$this->language->load('product/newproducts');
$this->document->setTitle($this->language->get('heading_title'));
$this->document->setDescription($this->language->get('description'));
$this->document->setKeywords($this->language->get('keywords'));
$data['column_left'] = $this->load->controller('common/column_left');
$data['column_right'] = $this->load->controller('common/column_right');
$data['content_top'] = $this->load->controller('common/content_top');
$data['content_bottom'] = $this->load->controller('common/content_bottom');
$data['footer'] = $this->load->controller('common/footer');
$data['header'] = $this->load->controller('common/header');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/newproducts.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/product/newproducts.tpl', $data));
} else {
$this->response->setOutput($this->load->view('newstore/template/product/newproducts.tpl', $data));
}
}
}
newproducts.tpl
<?php echo $header; ?>
<div class="container">
<div class="row"><?php echo $column_left; ?>
<?php if ($column_left && $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
<?php } elseif ($column_left || $column_right) { ?>
<?php $class = 'col-sm-9'; ?>
<?php } else { ?>
<?php $class = 'col-sm-12'; ?>
<?php } ?>
<div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?><?php echo $content_bottom; ?></div>
<?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>