I'm trying to introduce a simple php in a custom html module and it doesn't let me do it.Why?
This is the code:
<p> </p>
< ? php
echo " Hello World" . "\n";
?>
By default, Joomla doesn't allow you to use PHP in the editor. You will need to download a 3rd party extension to allow this feature. I would strongly recommend Sourcerer.
Once installed, simply wrap your code around {source} tags like so:
{source}
<?php
echo " Hello World" . "\n";
?>
{/source}
<?php, not< ? php