Open cart : 3.0.3.6
Theme : so-emarket
I'm trying to create a new home layout for one of my menu tabs and i can't make it to display the content . I can see the header and footer but no content.
If i place it in the ' Top Content ' is working . Any help will be really apreciated . Thank you
Here is the code i added :
catalog/controller/common/womans.php
Code: Select all
<?php
class ControllerCommonWomans extends Controller {
public function index() {
$this->document->setTitle($this->config->get('config_meta_title'));
$this->document->setDescription($this->config->get('config_meta_description'));
$this->document->setKeywords($this->config->get('config_meta_keyword'));
if (isset($this->request->get['route'])) {
$this->document->addLink($this->config->get('config_url'), 'canonical');
}
$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');
$this->response->setOutput($this->load->view('common/womans', $data));
}
}
Code: Select all
{{ header }}
<div id="content" class="{{ class }}">
{{ content_home }}
{{ content_top }}
{{ content_bottom }}
</div>
{{ footer }}