On Tuesday, Nov 19, 2002, at 08:35 US/Pacific, Sean Daniels wrote: > Is there a way to force CFMX to load some vars into server scope when > the service is started?
As Raymond says, put code in Application.cfm to load it once. > Also, has anyone had any negative reaction to loading a CFC into server > scope? Note that you cannot output HTML from methods of CFCs that are stored in shared scopes (but, hey, you wouldn't be outputting HTML from CFCs anyway, would you?). > Lastly, if someone has figured out a way to load UDFs in such a way > that they behave like native functions, I would love to hear about it. Nope, you need to scope them. Sure, you could create a 'local' alias via Application.cfm (<cfset formatphone = server.udfs.formatphone/>) but that won't be available inside custom tags for example. Sean A Corfield -- Director, Architecture Web Technology Group -- Macromedia, Inc. tel: (415) 252-2287 -- cell: (415) 717-8473 aim: seancorfield -- http://www.macromedia.com An Architect's View -- http://www.corfield.org/blog/ Introducing Macromedia Contribute. Web publishing for everyone. Learn more at http://www.macromedia.com/contribute ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm