LightWire and Lighthouse Pro Application Configuration Example

I see a lot of discussions centered around application configuration and the merits of different implementations. Of these, XML cofiguraiton is the most pervasive. A suggested best practice when using xml config files is to keep them outside of the web root to prevent exposing key settings. After recently installing Raymond Camden's Lighthouse Pro, I learned that you can also obfuscate the xml inside a comment block. To try and understand this clever workaround, I openend the hood (a.k.a Appplicaiton.cfc) and noted that with a very small change in onApplicationStart I could introduce both an IoC/DI container and swap out the xml for a programatic config using Peter Bell's LightWire.

[More]

Comments
jim collins's Gravatar "A suggested best practice when using xml config files is to keep them outside of the web root to prevent exposing key settings." Or you can just name them something.xml.cfm which is a common pratice in Fusebox.
# Posted By jim collins | 4/10/07 7:04 AM
Fancy Bread's Gravatar Hi Jim,

Thanks for the tip. I have had very limited exposure to Fusebox and XML config to be honest. Coldspring is the first time I've used it with CF. I used this approach in the example reference in this entry http://www.fancybread.com/blog/index.cfm/2007/4/10....
# Posted By Fancy Bread | 4/11/07 9:52 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9. Contact Blog Owner