Post by red-code » Sun Aug 30, 2015 6:59 pm

i have already make a module
when i tried to add a function addstyle into my controller in (catalog/controller/module/mymodule.php)
it doesn't work
and i tried to add it in common header it work

and my code is

$this->document->addScript('catalog/view/javascript/jquery/colorbox/jquery.colorbox-min.js');



what is the requirement to this function work ?

Newbie

Posts

Joined
Sun Aug 30, 2015 6:56 pm

Post by kodomoyeh » Thu Sep 12, 2024 8:06 am

In my case , I noticed that
$data['header'] = $this->load->controller('common/header');
should be written after AddScript
hope this helps.

Newbie

Posts

Joined
Fri Feb 26, 2016 9:06 am
Who is online

Users browsing this forum: No registered users and 11 guests