I'm trying to understand
First of all append would seem like it comes after the
</body> but I assume it can only mean after the contents of the body. And prepend before the contents of the body not before
<body> e.g. in the head.
My code looks like this:
use Joomla\CMS\Application\WebApplication; $thingToAppend = "<div>I am Eoin</div>"; appendBody::_($thingToAppend);
But when I use it I receive this error.
Error: Class 'appendBody' not found: Class 'appendBody' not found
What am I doing wrong?
After Mick's advice I tried:
But I got using $this when not in object context
So then I tried
$callpage_io__script = "<div>I am Eoin</div>"; $appendBody = new WebApplication; $appendBody->appendBody($callpage_io__script);
Which did not error, but also did not produce any HTML