Hi All,
Greatly interested in the dataface application framework. I'm trying my hand on some application using dataface. I got a php class that displays a menu just like windows explorer does. I mean colapsible/ expandible sort of menu. I want my application to use this feature at the block__before_left_column by defining it in the conf_ApplicationDelegate class. Few problems...
1. How do I make dataface include the menu class file in the conf_ApplicationDelegate class so that the
function block__before_left_column look like this:
function block__before_left_column(){
$applicationMenu = new HTML_TreeMenuXL();
$applicationNodeAttributes = array("icon"=>"folder.gif");
$applicationNode = new HTML_TreeNodeXL ("Accounts","#");
$applicationSubNode = &$applicationNode->addItem(new HTML_TreeNodeXL("Assets","#link",$applicationNodeAttributes));
$applicationSubNode = &$applicationSubNode->addItem(new HTML_TreeNodeXL("Current Assets","#link"));
$applicationSubNode->addItem(new HTML_TreeNodeXL("Fixed Assets","#link"));
$applicationSubNode->addItem(new HTML_TreeNodeXL("Other Assets","#link"));
$applicationNode->addItem(new HTML_TreeNodeXL("Liabilities and Capital","#link"));
$applicationSubNode2 = &$applicationNode->addItem(new HTML_TreeNodeXL("Current Liabilities","#link"));
$applicationSubNode2->addItem("Long Term Liabilities","#link");
$applicationSubNode2->addItem("Capital","#link");
$applicationNode->addItem(new HTML_TreeNodeXL("Balance Sheet","#link"));
$applicationMenu->addItem($applicationNode);
$demodMenu = & new HTML_DHTMLXL($applicationMenu, array("images"=>"images"));
$demodMenu->printMenu();
}
I get the following error with the above code
Warning: main(C:/Program Files/Apache Group/Apache2/htdocs/bin/TreeMenu.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\dataface\htmltreemenu\TreeMenuXL.php on line 50
Warning: main(): Failed opening 'C:/Program Files/Apache Group/Apache2/htdocs/bin/TreeMenu.php' for inclusion (include_path='.;c:\apache\php\pear') in C:\Program Files\Apache Group\Apache2\htdocs\dataface\htmltreemenu\TreeMenuXL.php on line 50
Warning: main(C:/Program Files/Apache Group/Apache2/htdocs/bin/ccBrowserInfo.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\dataface\htmltreemenu\TreeMenuXL.php on line 55
Warning: main(): Failed opening 'C:/Program Files/Apache Group/Apache2/htdocs/bin/ccBrowserInfo.php' for inclusion (include_path='.;c:\apache\php\pear') in C:\Program Files\Apache Group\Apache2\htdocs\dataface\htmltreemenu\TreeMenuXL.php on line 55
Fatal error: Class html_treemenuxl: Cannot inherit from undefined class html_treemenu in C:\Program Files\Apache Group\Apache2\htdocs\dataface\htmltreemenu\TreeMenuXL.php on line 68
Help Please!!!!!