How to add <script> tag to template's index.php from modules - Joomla! Forum - community, help and support


i create modules package. have write <script> ...</script> tag in template index.php file (in header), before installation.
if don't write <script> ...</script> in template header before installation, module doesn't work correctly :(
how can add automatically <script> ..</script> tag in template header, module ?

use jhtml::script

code: select all

jhtml::script("yourscript.js", $scriptpath, false);





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support