Me again 😛
I have a serious problem and i'm smashing my head on the table to get it solved:
remark: Somewhere in PHPeasyTemplate class, all globals get locally available:
foreach ($GLOBALS as $key => $value) {
global ${$key};
}
problem:
this works:
<code>
function myDummyFunction ()
{
$myTemplate = new PHPeasyTemplate ("html/template_test.tmpl");
}
$myClass = new myTest;
myDummyFunction ();
</code>
this doesnt work:
<code>
function myDummyFunction ()
{
$myClass = new myTest;
$myTemplate = new PHPeasyTemplate ("html/template_test.tmpl");
}
myDummyFunction ();
</code>
In the second code snippet, $myClass cannot be made locally available 🙁