We stored all of our constants as propertymanager properties (variables,
udf, cached queries, ...).
The properties are set in a InitPlugin.cfc - using the method
configure().
We read often used properties in the header views, and store them as a
struct in request scope.
I know - views should never read properties. Maybe we should change the
plugin and save the request variable there.

Harry

-- 
 
Harry Klein | Konzeption und Entwicklung
CONTENS Software GmbH

Oettingenstr. 25 | 80538 M�nchen
Fon: +49 (0)89 5199 69-0 | Fax: +49 (0)89 5199 69-78
mailto:[EMAIL PROTECTED] | http://www.contens.de
 
******************************************
Besuchen Sie CONTENS auf der 
iEX Internet Expo 2004 in Z�rich

04. - 06. Februar 2004 
Halle 5, Stand 5.163 

Mehr Infos finden Sie hier: 
www.contens.de/iex <http://www.contens.de/iex> 
****************************************** 



> -----Original Message-----
> From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: [CFCDev] Constants
> 
> 
> What do people feel is the best way to share constants across 
> classes ?
> 
> I'm currently planning to create a struct in the application 
> scope, and store 
> them as key/value pairs there.
> This will be populated at app startup.
> 
> That seems easy, stright forward...
> 
> -- 
> Tom Chiverton 
> Advanced ColdFusion Programmer
> 
> Tel: +44(0)1749 834997
> email: [EMAIL PROTECTED]
> BlueFinger Limited
> Underwood Business Park
> Wookey Hole Road, WELLS. BA5 1AF
> Tel: +44 (0)1749 834900
> Fax: +44 (0)1749 834901
> web: www.bluefinger.com
> Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
> Quay, BRISTOL. BS1 6EG.
> *** This E-mail contains confidential information for the addressee
> only. If you are not the intended recipient, please notify us
> immediately. You should not use, disclose, distribute or copy this
> communication if received in error. No binding contract will 
> result from
> this e-mail until such time as a written document is signed 
> on behalf of
> the company. BlueFinger Limited cannot accept responsibility for the
> completeness or accuracy of this message as it has been 
> transmitted over
> public networks.***
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
> in the message of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
> 
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[EMAIL PROTECTED]
> 
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to