franklinfs Posted October 18, 2013 Share Posted October 18, 2013 Hi I am creating a prestashop module. In this module i am using a css file like css/style.css in the modulename.php file i am using the following code. public function hookDisplayBackOfficeHeader() { $this->context->controller->addCSS(($this->_path) . 'css/style.css', 'all'); } I am using this styles in tpl file But its not working.... Link to comment Share on other sites More sharing options...
vekia Posted October 18, 2013 Share Posted October 18, 2013 you forgot about $params: public function hookDisplayBackOfficeHeader($params) and in addition: have you used registerHook in install() function to register this hook? Link to comment Share on other sites More sharing options...
franklinfs Posted October 18, 2013 Author Share Posted October 18, 2013 (edited) not working Anything i want to change in tpl file? File Structure: mymodule.php mymodule.tpl css/style.css Edited October 18, 2013 by franklinfs (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 18, 2013 Share Posted October 18, 2013 have you used registerHook in install() function to register this hook?[/size]+ what ps version you use? Link to comment Share on other sites More sharing options...
franklinfs Posted October 18, 2013 Author Share Posted October 18, 2013 Yes. I register the hook. OR !$this->registerHook('displayBackOfficeHeader') version is 1.5.4.1 Link to comment Share on other sites More sharing options...
Recommended Posts