Is there a way to set the current module name manually, for example, from a controller? I do not want to define the routes for every module separately - every module has to be able to use the default "controller/action" route. So, getting the controller action to execute was simple - adding the module's controller directory to Loader does the trick. However, how can I inform the Application/Renderer/etc. to use the configuration of that particular module to render the view?
\Phalcon\Mvc\Dispatcher has the following method documented:
public setModuleName (string $moduleName) inherited from Phalcon\Dispatcher Sets the module where the controller is (only informative)
However, how could I use something like this so that it would be effective, not only informative?