to make coding-life a little simpler I keep a set of 'default TBS .php and .html files in my code editing program. Part of the simplificagtion is automagically filling in the file basename of the php script into LoadTemplate().
Try:
$TBS->LoadTemplate(basename($_SERVER['SCRIPT_NAME'], ".php").".html") ;
|
HTH