I am building an extension. How can I make the extension load:
catalog/view/extension/css/myx.css
I cannot include that reference in the template because the CSS reference has to go up in the <head> section.
In controller page you can add following code:
It is loaded as per the controller so be sure to include in needed controller pages.
Thanks
Rupak
Code: Select all
$this->document->addStyle('catalog/view/extension/css/myx.css');
Thanks
Rupak
Rupak Nepali
webocreation.com@gmail.com
http://webocreation.com
Enjoy! Tips and tricks as well as free module.
Who is online
Users browsing this forum: No registered users and 1 guest