Post by sodamhall » Fri Oct 16, 2015 2:25 pm

Code: Select all

class ControllerCommonHome extends Controller {
		$this->document->setTitle
	public function index() {
		$this->document->setDescription($this->config->get('config_meta_description'));

		$this->data['heading_title'] = $this->config->get('config_title');
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/home.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/common/home.tpl';
		} else {
			$this->template = 'default/template/common/home.tpl';
I know I have changed the code around $this->document->setTitle what code should be in its place

Newbie

Posts

Joined
Tue Aug 25, 2015 4:09 pm

Post by IP_CAM » Fri Oct 16, 2015 11:53 pm

why not just check in an unchanged controller/common/home.php file?

Code: Select all

class ControllerCommonHome extends Controller {
	public function index() {
	$this->document->setTitle($this->config->get('config_title'));
	$this->document->setDescription($this->config->get('config_meta_description'));
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by OSWorX » Sat Oct 17, 2015 1:20 am

sodamhall wrote:

Code: Select all

class ControllerCommonHome extends Controller {
		$this->document->setTitle
	public function index() {
		$this->document->setDescription($this->config->get('config_meta_description'));

		$this->data['heading_title'] = $this->config->get('config_title');
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/home.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/common/home.tpl';
		} else {
			$this->template = 'default/template/common/home.tpl';
I know I have changed the code around $this->document->setTitle what code should be in its place
My respect to everyone who knows what to do.
My high esteem to everyone who do not know what he is doing .. but asking others after he failed and hoping they will solve his problem(s).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 7 guests