Pearl Posted June 26, 2013 Share Posted June 26, 2013 hello there. i have a module and i want to add css in it i created a name.css file and i added in name.php , function header , this $this->context->controller->addCSS(($this->_path).'name.css', 'all'); i tried with this too $this->context->controller->addCSS($this->getPathUri().'name.css', 'all'); it doesn't work, Is there any way to do this ? my module is installed and positioned in header, it appears on the page but it doesn't taka the css style. Link to comment Share on other sites More sharing options...
vekia Posted June 26, 2013 Share Posted June 26, 2013 do you use in your module registerhook('header') in the installation function ? it's necessary Link to comment Share on other sites More sharing options...
Pearl Posted June 26, 2013 Author Share Posted June 26, 2013 SOLVED , i figured it out ! i reset the module and it works now. Link to comment Share on other sites More sharing options...
vekia Posted June 26, 2013 Share Posted June 26, 2013 thanks for information im going to mark this thread as [solved] regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now