Как добавить в документ $document ссылку на скрипт /components/com_mycomponent/js/menu.js?
(Отметьте один правильный вариант ответа.)
Варианты ответа
$document->addScript('/components/com_mycomponent/js/menu.js');(Верный ответ)
$document->addScriptDeclaration('/components/com_mycomponent/js/menu.js');
$document->addMetaData('/components/com_mycomponent/js/menu.js');
только с помощью дополнительных плагинов