Done some more testing..
my user defined tag includes the following code :
include "twg15/index.php";
index.php includes some other files, for filefunctions etc.
at some point in time in index.php I do the following :
$basedir = $install_dir . $basedir;
$cachedir = $install_dir . $cachedir;
$counterdir = $install_dir . $counterdir;
$xmldir = $install_dir . $xmldir;
echo $basedir."".$cachedir."".$counterdir."";
if (!checkCacheDirs()) { // checks if all cache dir are here and set the right umask
return;
}
The echo outputs dir's as expected.. No problems there, then in checkCacheDirs() I have :
function checkCacheDirs($create_anyway = false)
{
global $basedir, $cachedir, $counterdir, $xmldir, $install_dir, $store_xml_in_picfolders;
echo $basedir."".$cachedir."".$counterdir."";
}
Now the globals $basedir etc. are empty..
I have googled, I have searched the smarty.php.net site, I have searched php.net I have searched the forum, documentation etc. for cms. But I can't find any indication as to how or why it does work like this!
I would expect that SOMEWHERE there would be a note, either saying "this is not possible" or "to do this, you have to blah blah..."
But NONE! I'm about to give up on this.. Throw in the towel, but I don't like it.. As this is one of the things that make me wonder!
Please, code gurus..

HEEEELP
/ Thomas