I was thinking about creating a module inside a module.
I am creating an admin module, and there are some smaller modules I would like to create. It HAS to be a module because it needs routing, but it is a different module. How can it be done?
Do you mean 'config' is the 'global', app config, or the config in the module? Can I make this config in modules/modulea/config/config.php?
Can I specify it under the module A namespace?
So I can reach it by \ModuleA\ModuleB\Class. Is it possible. If not, how can I make it not a module inside the module, but an other namespace. Eg.: \ModuleA\Namespace\Class?
The downside is that, since that 'mainmodule' directory contains folders like 'classes', 'config', 'views', etc, these will now be seen as module names. Which means URL's starting with these will go very wrong, so you need to capture those in your routing an route to your 404 handler to avoid that.