Search
Other Sourcerer questions
Forum

PHP file is not loaded

Daniel Lètolf's Avatar Daniel Lètolf
Hello
I would like to execute the PHP file template-php.php (located in the root directory). I have used the following code:
{source}<?php
include JPATH_SITE.‘/Template-php.php’;
?>{/source}
Now I get the following error message: Undefined constant ‘’’. I am using Joomla 5.2.3 with YoothemePro. Does anyone have an idea where the error could be? Thank you very much
Peter van Westen's Avatar Peter van Westen ADMIN
Make sure you use simple single quotes and not the left- or right-quotes.
‘ vs '
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription