I want to create a custom css file that I can use to override template default css rules and I don't want to use the Template Tweaker.
I am following these instructions, but they don't work; my css file link is not added to the head. Yes, I did rebuild the cache.
http://kb.x-cart.com/display/XDD/Adding+new+CSS+file
I created a module in
/classes/XLite/Module/Wolf/CustomCss/View/AView.php
I also created the module dir in the skin:
/skins/default/en/modules/Wolf/CustomCss/last.css
Below is the code in
AView.php:
Code:
<?php
namespace XLite\Module\Wolf\CustomCss\View;
abstract class AView extends \XLite\View\AView implements \XLite\Base\IDecorator
{
protected function getThemeFiles()
{
$list = parent::getThemeFiles();
$list[static::RESOURCE_CSS][] = 'modules/Wolf/CustomCss/last.css';
return $list;
}
}
Any idea why it does work?
Environment Info:
Core version: 5.0.12
Installation directory: /home/wolfstyl/wolfstylestore
PHP: 5.3.28 details >>
MySQL server: 5.5.33-31.1 (InnoDB engine support enabled)
Web server: Apache
Operating system: Linux
XML parser: found
GDLib: found (0)
Translation driver: Database
Curl version: 7.19.7
Thanks