Skip to content

Instantly share code, notes, and snippets.

@victorpavlov
Last active December 14, 2015 18:29
Show Gist options
  • Save victorpavlov/5130132 to your computer and use it in GitHub Desktop.
Save victorpavlov/5130132 to your computer and use it in GitHub Desktop.
PHP:Joomla add JavaScript File
<?php
$document = JFactory::getDocument();
$document->addScript(JURI::base().'templates/your_template_name/js/your.custom.js');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment