Hi guys,
I have a weird problem.
We have the following structure:
- contentbox
- MainParentModule
- interceptors (MultiDomainSES.cfc)
- modules
- ChildModule
The main Module defines different setting for live and dev environments. eg:
function live(){ settings.isDevEnv = false; } function development(){
settings.isDevEnv = true;`
}
`
The MultiDomainSES.cfc uses the setting “isDevEnv
”
property name=“isDevEnv” inject=“coldbox:setting:isDevEnv@MainParentModule”;
So for the case that we are on dev environment, we set different values with “setSESBaseURL()”
The child module uses event.buildlink(). We now had the case, that a link was created that pointed on the local dev url.
It seems, that a setting was not loaded correct. Then the injected value was empty and this caused a behavior like we just want to have on dev environment.
Is a order for loading the modules needed? Or any idea what happened?
Cheers
Andy