Post by deklin777 » Fri Aug 19, 2016 3:18 am

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.

Newbie

Posts

Joined
Fri Aug 19, 2016 3:14 am

Post by rupaknepali » Tue Aug 23, 2016 4:59 am

In controller page you can add following code:

Code: Select all

$this->document->addStyle('catalog/view/extension/css/myx.css');
It is loaded as per the controller so be sure to include in needed controller pages.

Thanks
Rupak

Rupak Nepali
webocreation.com@gmail.com
http://webocreation.com
Enjoy! Tips and tricks as well as free module.


Active Member

Posts

Joined
Mon Apr 25, 2011 7:04 pm
Who is online

Users browsing this forum: No registered users and 1 guest