- Code: Select all
$template_style = $this->getTemplateStyle('style');
// load the CSS files
if(!file_exists(JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'route.php')) {
$this->API->addCSS($this->API->URLtemplate() . '/css/k2.css');
}
But there is no k2.css in template, and after uninstalling K2 component throwing error in the developer console. Please inform me if this is a your mistake or my.