private static function _loadModules() { $modulePath = Config::getModulePath(); $directories = scandir($modulePath); foreach ($directories as $d) { if (substr($d, 0, 1) != '.') { if (is_dir($modulePath . DIRECTORY_SEPARATOR . $d)) { $moduleClass = 'Module_' . $d; if (method_exists($moduleClass, 'load')) { $moduleClass::load(); } // May at some point want to put some error handling when there are problems loading modules } } } }