Adobe COLDFUSION 9 Manual page 396

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
<!--- type="comment" --->
<cftimer label="Query and CFOUTPUT Time in Comment" type="comment">
<cfquery name="parkquery" datasource="cfdocexamples">
select *
from Parks
</cfquery>
<p>Select View &gt; Source to see timing information</p>
<table border="1" width="100%">
<cfoutput query="parkquery">
<tr>
<td>#Parkname#</td>
</tr>
</cfoutput>
</table>
</cftimer>
<hr><br>
<!--- type="debug" --->
<cftimer label="Query and CFOUTPUT Time in Debug Output" type="debug">
<cfquery name="deptquery" datasource="cfdocexamples">
select *
from Departments
</cfquery>
<p>Scroll down to CFTimer Times heading to see timing information</p>
<table border="1" width="100%">
<cfoutput query="deptquery">
<tr>
<td>#Dept_ID#</td>
<td>#Dept_Name#</td>
</tr>
</cfoutput>
</table>
</cftimer>
</body>
Using the Code Analyzer
The Code Analyzer has two purposes:
• It can validate the CFML syntax of your application. To do so, the analyzer runs the ColdFusion compiler on your
pages, but does not execute the compiled code. It reports errors that the compiler encounters.
• It provides information about the incompatibility (and its severity), and suggests a remedy where one is required.
• It can identify places where ColdFusion might behave differently than previous versions. The analyzer identifies the
following kinds of features:
• No longer supported: Their use results in errors. For example, the closable attribute is not supported for the tag
cflayoutarea in border layout (cflayout with
• Deprecated: They are still available, but their use is not recommended and they might not be available in future
releases. Deprecated features might also behave differently now than in previous releases. For example, in
cfcache tag the following attributes are deprecated:
• Modified behavior: They might behave differently than in previous versions. For example, if you use cfcache
tag in ColdFusion 9 without end tag (
the behavior in the previous releases), the entire request is cached.
).
type="border"
,
directory
cachedirectory
), then instead of caching only the current page (which was
</cfcache>
Last updated 8/5/2010
,
, and
.
port
protocol
391

Advertisement

Table of Contents
loading

Table of Contents