i'm creating new module,
i've created and registered new hook
everythink works fine, the tpl is printed on the new hook
but i cant find the way to add css or js
this function is doing nothing :S
public function hookHeader($params) { $this->context->controller->addJS($this->_path.'views/js/front.js', 'all'); $this->context->controller->addCSS($this->_path.'views/css/front.css', 'all');
}
(files does exists)
but this one, for backoffice, works fine: public function hookBackOfficeHeader() { $this->context->controller->addJS($this->_path.'views/js/back.js'); $this->context->controller->addCSS($this->_path.'views/css/back.css'); }
i have followed all answers in forum but nothing works for me
any help please?? :)
direccionespredefinidas.php