joomla add script and css in module


joomla add script and css in module

$document =& JFactory::getDocument();
$document->addStyleSheet(JURI::root().'media/system/css/calendar.css');
$document->addScript(JURI::root().'media/system/js/calendar_shift1.js');
$document->addScript(JURI::root().'media/system/js/validation.js');

You may also like...

%d bloggers like this: