getherbert / herbert

The WordPress Plugin Framework:
http://getherbert.com/
634 stars 95 forks source link

How best to include / autoload class files #188

Open tedsecretsource opened 6 years ago

tedsecretsource commented 6 years ago

Hi,

I'm just wondering what the best way to include class files is. I have numerous mini-models and I'm wondering if there is a folder I can pop them into and they'll be automatically included, like in the Models folder.

Thanks in advance.

Ted Stresen-Reuter

ken-bem commented 6 years ago

Anything in the App folder will be autoloaded, if its not, add the file to the herbert.config file in the requires section.