Thanks JerryEla -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JerryEla Sent: Thursday, January 15, 2004 9:01 PM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] Making sure is not called out of sequence
I wrote code to to exactly that for custom tags in CF4.5. I haven't tested it in MX so it may need a few tweaks, but should do what you want. GetFQCallStack.cfm returns the fully qualified call stack at the point where it is called. ValildCaller.cfm uses GetFQCallStack.cfm to figure out how the current template was called and throws an error if it was called directly or by a template whose filename and directory don't match the passed regular expression. Bryan F. Hogan wrote: >Does anyone know if it is possible to make sure that a CFC is not >called directly and that can only be called from a certain CFC when the >CFC that shouldn't be called is in a sub-directory of the CFC that >should be the only caller? > > >---------------------------------------------------------- >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]
