I have a file with two includes:
For some reason, functions.inc.php cannot read variables from globals.inc.php. The page that these files are being included on can read the variables just fine. However, when I call a function from functions.inc.php I get:
Notice: Undefined variable: global_SiteNavigation in /xxx_site_root/includes/functions.inc.php</b> on line 34
Then the function looks to use the values in that array, but can't find it. Any idea why this is?
Code:
// include global variables
include("includes/globals.inc.php");
// include site functions
include("includes/functions.inc.php");
For some reason, functions.inc.php cannot read variables from globals.inc.php. The page that these files are being included on can read the variables just fine. However, when I call a function from functions.inc.php I get:
Notice: Undefined variable: global_SiteNavigation in /xxx_site_root/includes/functions.inc.php</b> on line 34
Then the function looks to use the values in that array, but can't find it. Any idea why this is?