This problem has driven me nuts in the last two days....
I have a file config.php having a class:
class config
{
public static $Image="/images";
}
Another file layout.php is as:
require_once("config.php");
class layout
{
public function writeLogo()
{
$text = <<<ABC
<img class="Logo" title="My Logo" alt="Logo" src="{config::$Image}/Logo.gif" />
ABC;
echo($text);
}
}
The problem is that {config::$Image} is evaluating to {config::}.
Can anyone explain me why & what's the solution???