as long as the variable has a value before you evalute a template containing the variable it shoud work.
$test="This is a test";
eval("\$stuff = \"".gettemplate('some_template')."\";");
eval("dooutput(\"".gettemplate('another_template') ."\");");
You need to make sure that the variable is declared and has a value before evaluating the template with the variable within it.
|