初めての ColdFusion コンポーネントを作成していますが、このエラーが発生します。これが何を意味するのか誰にも分かりますか?
Invalid CFML construct found on line 2 at column 1.
ColdFusion was looking at the following text:
<
The CFML compiler was processing:
< marks the beginning of a ColdFusion tag.Did you mean LT or LTE?
The error occurred in C:/inetpub/wwwroot/ColdFusion/test.cfm
<cfcomponent displayname="News" hint="Get News">
<cffunction name="GetNews" returntype="query">
<cfquery datasource="CFDatabase" name="myQuery"
ソースコード:
<cfcomponent displayname="News" hint="Get News">
<cffunction name="GetNews" returntype="query">
<cfquery datasource="CFDatabase" name="myQuery">
select * from tbNews
</cfquery>
<cfreturn myQuery>
</cffunction>
</cfcomponent>
<cfinvoke component="components.News" method="GetNews" returnvariable="AllNews">
<table width="100%">
<cfoutput query="AllNews">
<tr>
<td>Title:</td>
<td><cfoutput>#myQuery.Title#</cfoutput></td>
<td>Body:</td>
<td><cfoutput>#myQuery.Description#</cfoutput></td>
</tr>
</cfoutput>
</table>