If it is only applicationname that you need to be unique, then you could just use a hash of template path as app name, or some variation of the below:
this.name = hash(getCurrenttTmplatePath()); Azadi On Sat, Oct 13, 2012 at 10:47 PM, Nick Gleason <[email protected]> wrote: > > Hi Folks, > We're moving from application.cfm to application.cfc and I had a question > regarding best practices. > We re-use our base code and in the past, we have used a settings page that > is external from the base code and unique per client to set the > applicationname variable (and other variables). This is called at the > beginning of application.cfm and provides <cfapplication> with the unique > application name. > That same structure seems to work with application.cfc but requires calling > a file at the top of application.cfc, above setting the application > variables in application.cfc, to provide the applicationname. > Is that approach (calling a file at the top of application.cfc to provide a > unique client setting) considered a best practice for this kind of thing. > Or, is there a more appropriate way? > The only other thing I could think of would be to hard code the unique > client applicationname in Application.cfc, but that would then require that > Application.cfc be a unique file per client and thus not part of our core > base code in the sense that we wouldn't include it in upgrades (so that it > wouldn't over-write a unique client file with default values). > Any thoughts on that? Let me know if I'm not being clear. > Thank you in advance! > Nick > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352904 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

