Code: Select all
<?php
require_once("initialize.php");
include("header.php");
?>
body of the page
<?php
include("footer.php");
?>
However, in this header.php, I want to call the instance of Foo, I made, but it seems I have no access to that instance. How do I go about to have access to that instance of Foo in header.php?
I hope everything is clear. Advise and suggestions are welcome!
Bart