[英]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.