Thanks for resolving my first question about variables. I am now ready to take the next step to having a single page template that is fed from an array and external include files.
My template page is:
<?PHP
$strPagename = 'schoolmain';
require ('global/!config.inc');
require ('global/!header.inc');
require ('pages/school/'.$strPagename.'.inc');
require ('global/!footer.inc');
?>
The array is:
<?PHP $aryConfig = array(
"schoolmain" => array (
"Title" => "Welcome to BRHS",
"CSS" => "beitrayim.css",
"MenuScript" => "menu_school.js",
"LogoImg" => '<IMG src="/images/nav_wide_logo.gif" border="0">',
"LogoLink" => '<a href="/index2.html">',
"NavImg" => '<IMG src="/images/nav_school_home.gif">',
"LeftColHead" => "Welcome to Our School"),
"schoolprincipal" => array (
"Title" => "BRHS - About Us",
"CSS" => "beitrayim.css",
"MenuScript" => "menu_school.js",
"LogoImg" => '<IMG src="/images/nav_wide_logo.gif" border="0">',
"LogoLink" => '<a href="/index_school.php">',
"NavImg" => '<IMG src="/images/nav_school_about.gif">',
"LeftColHead" => "Principal's Message"),
etc....ending with,
);
?>
We have a javascript menu system.
The question is:
1. How do I change the statement from the template file so that it is fed from the array?
-$strPagename = 'schoolmain';
- How are menu commands formatted to call the template and bring up a specific page.
Thanks,
Brian