>Can you give some example code?  I just want to make sure I understand you
>completely.

It's not a very hard concept. I create a file called constants.cfm, put it 
in the same directory as my Application.cfm file, and then cfinclude it in 
the Application.cfm file, so that it is included on every page request.

In the constants.cfm template itself, I just set a bunch of global 
variables, ie:

<cfscript>
  variables.varName = "value";
  variables.varName2 = "value2";
</cfscript>

Now these variables are available to me on every page, and I don't have to 
waste time locking.

Regards,
Dave.


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to