Hmm. I see. I might not have asked my question the right way. (I'm not a native English speaker. Sorry again.)
I was wondering why to use the eval() at all?
Why not:
echo fetch_template("FORUMHOME");
but instead:
eval('echo "'.fetch_template(...).'");');
So my main question was: Why do we use eval here? Is it, because templates might contain php code, too? or vars?
(Btw.: You were right with the "main" template. If I replace it with e.g. FORUMHOME, it works great.)
I still do not understand how the declaration of the local variable $globaltemplates helps caching...
|