Barney, Not to pick a fight, but what problems do you see with using Application.cfc? I, personally, find it to be a much better solution, so I am curious about your misgivings...
Steve "Cutter" Blades Adobe Community Professional - ColdFusion Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _____________________________ http://blog.cutterscrossing.com Barney Boisvert wrote: > Only a single Application.cfm file (note the capital 'A') will be run > for a single request. CF will look "up" the directory tree until it > finds one, but it will stop it's search at the first one encountered. > If you want to chain Application.cfm files as you propose, simply use > CFINCLUDE to grab the parent one: > > <cfinclude template="../Application.cfm" /> > > Unfortunately, Application.cfc is becoming a requirement for building > CF applications, so you should switch to that. It has a host of > problems, but it's also the only way to get certain functionality with > CF (ORM, default datasource, code-based mappings, etc.). Hopefully > Adobe will change that, but it seems unlikely. Railo, by contrast, > lets you use the full functionality without forcing you into > Application.cfc and all the problems it provides. > > cheers, > barneyb > > On Mon, Apr 12, 2010 at 7:01 AM, Brian Bradley <[email protected]> wrote: > >> I think I misunderstand how to use application.cfm files. I have a >> application.cfm file on the root and I set a group of session variables. I >> have a folder off the root named products with an application.cfm file in >> it. It was my understanding that the root application.cfm would take >> precedence to the subfolder's application.cfm and could share variables to >> the application.cfm like it could any page in that folder. But when I call >> a variable in the sub application.cfm file to the higher level >> application.cfm, I get variable is undefined error. Is that just not >> possible to share variables among application.cfm files even if they are >> hierarchically below a higher application.cfm file or am I doing something >> else wrong? >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332841 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

