I'm doing something like this in the
Control Panel > Display > General > Default Header
field...

PHP Code

<?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 Code

<?php
// some code
$x = myclass::GetAPath();
// some code
?>


But PHP is responding saying the class is not available when calling
$x = myclass::GetAPath();



Today they call you "crazy".
Tomorrow they call you "ahead of your time".