Ok, so i'm instantiating a class in page.php.
Then i'm calling get_header()
to include header.php
now in header.php i need to access this class object and execute one of its methods but i get this error:
\nFatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function links() on a non-object (NULL)'
should i just use require
instead of get_header()
?