Is there an easy way to programmatically require all files in a folder?
Probably only by doing something like this:
$files = glob($dir . '/*.php'); foreach ($files as $file) { require($file); }
It might be more efficient to use opendir() and readdir() than glob().
opendir()
readdir()
glob()