The Modules Class

This core engine class handles the dynamic loading and execution of module controllers. The Modules class supports both parent and child module structures, allowing controllers to be instantiated and their methods invoked programmatically at runtime.

load()

Loads a module by instantiating its controller.

run()

Executes a module controller method from anywhere - controllers, views, or models - by passing the module/method string and optional data. Accepts any PHP data type as the second parameter.