RussellP
Posts: 20
|
| Posted: 02/16/2008, 7:03 PM |
|
I embarked on building a menu system to be part of a header, as was my standard technique in CC3.
I have been able to build a menu system using the menu builder with no difficulties. However, when I converted this to an includeable page, I immediately got an error of the type
Class 'clsMenu' not found in C:\wwwroot\myproject\myheader.php on line 3
Examining this code, it appears that the necessary include files are not included when an includaeable page is created. The following code is missing, but I am not sure if it should be there.
//Include Common Files @1-D3419549
define("RelativePath", ".");
define("PathToCurrentPage", "/");
define("FileName", "NewPage2.php");
include_once(RelativePath . "/Common.php");
include_once(RelativePath . "/Template.php");
include_once(RelativePath . "/Sorter.php");
include_once(RelativePath . "/Navigator.php");
//End Include Common Files
So, I would like to know how I can build a menu system into a header, which can be then included onto other pages
Thanks
Russell P
_________________
Russell P |
 |
 |
RussellP
Posts: 20
|
| Posted: 02/16/2008, 8:55 PM |
|
What I have done to fix this is to copy in the code for the include files into the header of the code for the includeable page. It works, but it seems odd to have to do this.
regards
Russell
_________________
Russell P |
 |
 |
|