Is there an easy way to programmatically require all files in a folder?
As require_all() function:
//require all php files from a folder function require_all ($path) { foreach (glob($path.'*.php') as $filename) require_once $filename; }