I\'ve got a problem:
I\'m writing a new WebApp without a Framework.
In my index.php I\'m using: require_once(\'load.php\');
When you call the function in a static context, $this
simply doesn't exist.
You would have to use this::xyz()
instead.
To find out what context you're in when a function can be called both statically and in an object instance, a good approach is outlined in this question: How to tell whether I’m static or an object?