I can't really describe it better than that.
Essentially I create my projects via a series of nested includes, so my main index.php page will have a call to a 'bootstrap.php' with something like this in:
require_once('../framework/_include.php');
require_once('../models/_include.php');
require_once('../controllers/_include.php');
And each of those _include.php files has a require_once() for each of the class definitions or whatever.
But I've got a weird thing that's happened to me more than once and particularly with this new site I'm building.
I originally had a file called Config.php in the Framework folder and that contained all my constant definitions. After much head scratching I worked out that it wasn't being 'included' so I eventually tried renaming it to Constants.php and lo and behold it was 'picked up'.
Now I have the strange situation of my 'Utilities' class in the Framework being found by my classes in Models but the classes in Controllers don't see it.
I'm tempted to change the name of the file again and I guess maybe I will but it's more of a change in this case and confuses me that it could even happen.
Like I say, I've seen this sort of thing before so I'm wondering if:
- it's something about XAMPP?
- it's something about a cache situation that I haven't understood?
- it's something about 'require_once' I've not fully understood?
- I'm just going quietly mad.