I have an application which I'd like to make more modular..Towards that end I have one base app which checks a config file for a list of modules to require at run time. The problem is that while I have a standard api for interfacing with each module I dont know how to reference them within the core program. The require runs in a loop replacing the path/module name in a var based on the config file contents. I dont know how to detect and reference or set a way to reference the module after the require (assuming it's even possible as I'm wanting to do it).
Thanks in advance..