Jump to content

[solved] add css to a module


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...