Post by DesignCart » Fri Oct 12, 2018 12:02 am

Hi I have problem with few new positions module. Positions load modules coretlu but not load styles which are declared in module controller. I saw on the forum that similar problems were in Opencart 2, but no solution was given there. Someone knows something? I don't see this problem on start page.

my website: Tworzenie sklepu internetowego Opencart


User avatar
New member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by DesignCart » Fri Oct 12, 2018 12:23 am

OK. I found my own problem. The problem is the order loaded the controllers. Controller header must by loaded as last.

My old code in category controller:

Code: Select all

$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');
                        $data['bottom_left'] = $this->load->controller('common/bottom_left');
			$data['bottom_right'] = $this->load->controller('common/bottom_right');
			$data['super_bottom'] = $this->load->controller('common/super_bottom');
this is corectly code:

Code: Select all

$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['bottom_left'] = $this->load->controller('common/bottom_left');
			$data['bottom_right'] = $this->load->controller('common/bottom_right');
			$data['super_bottom'] = $this->load->controller('common/super_bottom');
                        $data['footer'] = $this->load->controller('common/footer');
			$data['header'] = $this->load->controller('common/header');

my website: Tworzenie sklepu internetowego Opencart


User avatar
New member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin
Who is online

Users browsing this forum: psikrotic and 24 guests