Jump to content

How to assign css to a module controller .tpl?


JoelWebsites

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
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...