event.getCurrentModule() is empty when using 'alias'
I have a custom module in a CB5 app in the folder modules_app\foo
We want this custom module to be approachable also via another route, nameley `bar', to be used by a specific group of users, which distinguishes in functionality
In Coldbox 4 we had the line
in Routes.cfm. This worked as expected:
In CB5 addModuleRoutes(pattern="/bar",module="foo") results in an error Error importing routes configuration file:
So I have tried to switch to aliases,
The issue is that the way modules are loaded has now changed since cb5 and 6. Therefore, the delayed approach to issuing more entry points is to use the new DSL method `route().toModuleRouting()`. This will delay execution for you and wait for modules to be loaded and then register the entry point
Turns out, adding the following to the onLoad function in Moduleconfig.cfc, makes it work
Is this still a bug, or does it just need documentation?