Loading ColdSpring and ModelGlue configurations dynamically
- July 20, 2009
- 1 reply
- 491 views
Hi all,
I am trying to load the configurations of coldspring and modelglue dynamically using one environment.xml.cfm file, so that i dont have make changes at multiple places but at only at one.
Attached are my three files
1- environment.xml.cfm:
2- application.cfc
3-portalConfig.cs.xml (the file in which i want the values to be loaded dynamically)
Please, see the code of these files.
If I dump the values, in application.cfc, I get the correct dynamically loaded values for ColdSpring (i.e. values for properties of portal.config.cs.xml. For example for intranetId, i get 10 ) but when I try to access it somewhere else (e.g in Controllers) it returns the strings (like ${intranetId}) instead of values (like 10, defined in environment file).
Can anyone plz help me out here.
I already have gone through http://bears-eat-beets.blogspot.com/...odel-glue.html.
