I have an autoloader that loads my classes in an ‘includes/Classes’ directory. Made my life a whole lot easier!
I want to use the PHPWord library. Now everytime I try to load PHPWord it still thinks to look for it in the ‘Classes’ folder.
PHPWord has it’s own autoloader which I call as such:
\PhpOffice\PhpWord\Autoloader::register()
However the only way I’ve gotten things to load correctly is to call that autoloader before I call my own.
I have a feeling that I’m not loading things in the best manner. I’m not using an MVC framework, or any framework, to create my site. It’s all fairly simple and custom. How do you guys do this autoloading business?