Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / January 2006



Tip: Looking for answers? Try searching our database.

seeing file names from includes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cutie369 - 31 Jan 2006 14:23 GMT
Hi guys, can anyone help a little lady with this coding problem.  I am working
on a Fusebox app which is quite large and has a number of include  files
embedded in each page.  During development is there some code which might
access the name of the include files?
boughtonp - 31 Jan 2006 15:40 GMT
If you turn on debugging output it should show a list of the templates and the
time taken to execute.

Here's how the debug script does it:
<cfobject action="CREATE" type="JAVA" class="coldfusion.server.ServiceFactory"
name="factory">
<cfset cfdebugger = factory.getDebuggingService()>
<cfset qEvents = cfdebugger.getDebugger().getData()>
<cfquery dbType="query" name="cfdebug_templates" debug="false">
    SELECT template, parent, Sum(endTime - StartTime) AS et
    FROM qEvents
    WHERE type = 'Template'
    GROUP BY template, parent
    ORDER BY et DESC
</cfquery>
<cfdump var="#cfdebug_templates#"/>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.