In trying to be able to call a fuseaction from within a
fuseaction, I found the Module function to be quite
difficult. Between layout and naming I just couldn't get it
to do what I wanted.
I found that simply a simple mod to the function so that
it RETURNS is content instead of PRINTING it solved
virtually all of my problems. I can now display a page
with information generated from 5-6 otyher fuseactions.
I didn't want to modify the existing call. I created the
following call in my utility library.
I think this is a potential candidate for include in the
SaveContent file though I think it needs a better name.
Potentially do it with a optional flag parameter to say is
you wanted it returned or printed.
-seg
grevemes@tsmservices.com
function getModule($filePath, $attributes)
{ //Useage: Module("templateName.php", array
("var1"=>"val1","var2"=>"val2","foo"=>"bar"))
$Mod = new SaveContent;
$Mod->module($filePath,
$attributes);
return $Mod->content;
}