In the install.php file of my component I want to add CSS styles for HTML code I am displaying 'onInstall'.
I tried:
Code: Select all
$doc = JFactory::getDocument();
$doc->addStyleDeclaration('...');
Code: Select all
use Joomla\CMS\Factory;
$doc = Factory::getDocument();
$doc->addStyleDeclaration('...');
Anyone any idea what is wrong?
Thank you very much in advance for any useful hint!
Kind regards,
Gerald