Jump to content

How to assign css to a module controller .tpl?


JoelWebsites
 Share

Recommended Posts

How to assign css to a module controller 

 

in my main module file 

I have added $this->registerHook('header') &&

 

public function hookHeader()
{
$this->context->controller->addJS($this->_path.'/js/front.js');
$this->context->controller->addCSS($this->_path.'/css/my-account.css');
}
 
but still cannot see the css being used in module controller that has assigned a tpl
 
How do I get this done?..thanks

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More