[英]How pass variable from template index.php to the component in Joomla?
[英]Joomla! Unset CSS in template index.php
我有一个自定义的Joomla 3模板,可在其中使用
unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
取消设置boootstrap功能。 这对我来说可以。 现在,我想使用相同的技术来取消设置一个css文件,并为其设置另一个文件。
unset($this->_scripts[JURI::root(true).'/media/system/css/calendar-jos.css']);
它没有给我任何结果。
我该如何解决这个问题?
谢谢。
更改:
unset($this->_scripts
至:
unset($this->_styleSheets
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.