Did a couple more tests after removing the dat file and restarting the computer.
Problems still exist.
If Themes -> Create Page with Theme
The primary file linked is itself. For instance if you create a new page using this method the initial values are :
<?php
if("" == ""){
$WA_testphpFW_1286405603037_Content_Empty = "";
$WA_testphpFW_1286405603037_Content = new WA_Include(__FILE__);
$WA_testphpFW_1286405603037_Template = new WA_Include("../Templates{$WA_testphpFW_1286405603037_Content_Empty}/untitled_1.php");
require($WA_testphpFW_1286405603037_Template->BaseName);
$WA_testphpFW_1286405603037_Template->Initialize(true);
}
?>
since "untitled_1.php" is the default name of the new page created.
Next you can take an existing page that you want to theme with the Framework.
Create simple page, apply the original DW template and you get this:
<?php
if("" == ""){
$WA_testphpFW_1286405603037_Content_Empty = "";
$WA_testphpFW_1286405603037_Content = new WA_Include(__FILE__);
$WA_testphpFW_1286405603037_Template = new WA_Include("../Templates{$WA_testphpFW_1286405603037_Content_Empty}/testphpFW");
require($WA_testphpFW_1286405603037_Template->BaseName);
$WA_testphpFW_1286405603037_Template->Initialize(true);
}
?>
WA_Include("../Templates{$WA_testphpFW_1286405603037_Content_Empty}/testphpFW)
rather than the correct:
WA_Include("../Templates{$WA_testphpFW_1286405603037_Content_Empty}/testphpFW.dwt.php");