aboutsummaryrefslogtreecommitdiffstats
path: root/public/catalog/controller/common/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/catalog/controller/common/home.php')
-rw-r--r--public/catalog/controller/common/home.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/public/catalog/controller/common/home.php b/public/catalog/controller/common/home.php
new file mode 100644
index 0000000..259156b
--- /dev/null
+++ b/public/catalog/controller/common/home.php
@@ -0,0 +1,21 @@
+<?php
+class ControllerCommonHome 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/home', $data));
+ }
+}