I haven't done too much with this, but you could potentially use the
ServiceFactory to figure out which was the last template called. You would
have to call the code within your function, then query it to figure out
which was last... Not sure how they are ordered off hand.
!--- Create ColdFusion
Thanks, it only works when debugging is enabled though.
Is there not a way to get this kind of info with debugging off?
On 8/29/06, Ben Nadel [EMAIL PROTECTED] wrote:
I haven't done too much with this, but you could potentially use the
ServiceFactory to figure out which was the last template
]
Sent: Tuesday, August 29, 2006 5:50 PM
To: CF-Talk
Subject: Re: How to tell what template called a function?
Thanks, it only works when debugging is enabled though.
Is there not a way to get this kind of info with debugging off?
On 8/29/06, Ben Nadel [EMAIL PROTECTED] wrote:
I haven't done too
I was asked that question a few weeks back by a friend and the answer was to
take the debug template that sits in the cfusionmx/wwwroot/web-inf/debug and
play with it some. There is an undocumented factory call there that gives
access to all the page info. It is possible to rewrite the whole
Michael, is the code that Ben posted the undocumented factory call you
are referring to?
Ie, this code:
cfset objFactory = CreateObject( java, coldfusion.server.ServiceFactory)
cfset objDebugging = objFactory.GetDebuggingService()
That code will only work when debugging is enabled unfortunately.
5 matches
Mail list logo