Previous version of opencart i.e. 1.4.0 have a class called 'Url' under system/engine to convert http and https urls like below:
Code: Select all
$this->data['home'] = $this->url->http('common/home');
$this->data['special'] = $this->url->http('product/special');
OR
'href' => $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $menu['category_id']))
Code: Select all
$this->data['home'] = HTTP_SERVER . 'index.php?route=common/home';
$this->data['special'] = HTTP_SERVER . 'index.php?route=product/special';
$this->data['redirect'] = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=' . $route . $url);
Thanks....
.....