I'm doing something like this in the
Control Panel > Display > General > Default Header
field...
<?php
class myclass {
public static function GetAPath() {
return '/web/vhosts/orbisvitae.com/htdocs/Header.html';
}
}
?>
and then using the class in
Control Panel > Content > Forums > Forum Introduction Body
<?php
$x = myclass::GetAPath();
?>
But PHP is responding saying the class is not available when calling
$x = myclass::GetAPath();