- see footer for list info -<
Both cfcs and cfms

Kerry wrote:

- see footer for list info -<
access it anywhere
depends on what you mean by "anywhere"
do you mean in all your .cfm files? or in other cfc's as well?

creating a session object
sounds okay if its a very light object and/or you are sure you will never
have a massive amount of sessions, but I would probably do something along
the lines of:

application.cfm

if(not structkeyexists(application,"mycfc")){
        application.mycfc = createobject(
}

request.common.mycfc = application.mycfc



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of dominic watson
Sent: 17 October 2005 14:06
To: Coldfusion Development
Subject: [CF-Dev] UDFs


- see footer for list info -<
I've kinda asked this before but I think I asked the wrong question:

Is there a way of registering a udf that means I could access it
anywhere without having to include the damn thing in every template it
is used?

I am thinking of putting it in a cfc and creating a session object of
the cfc, good idea?

Thanks, dom
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to