Can I do something like application.myFunction =
createObject("component", "com.myCom").myFunc ?On Jul 23, 11:58 pm, Matthew Woodward <[email protected]> wrote: > On Fri, Jul 23, 2010 at 10:21 PM, fingerskier <[email protected]> wrote: > > Is there a more elegant/ > > automatic way to do this? > > Yep, check out Application.cfm and > Application.cfc:http://openbluedragon.org/manual/?/app_applicationhttp://openbluedragon.org/manual/?/app_application_cfmhttp://openbluedragon.org/manual/?/app_application_cfc > > You can also leverage the application scope, which lets you do things like > put a single instance of a CFC containing global functions in the > application scope which you could reference from anywhere in your > application. > > Hope that gets you started. Feel free to follow up with more questions. > -- > Matthew Woodward > [email protected]http://blog.mattwoodward.com > identi.ca / Twitter: @mpwoodward > > Please do not send me proprietary file formats such as Word, PowerPoint, > etc. as attachments.http://www.gnu.org/philosophy/no-word-attachments.html -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon online manual: http://www.openbluedragon.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
