I mean from the cfc. I have:
<!--- cfc--->
<cfcomponent>
<cffunction name="getArtists" access="remote" returntype="query">
<cfset var qRead = "" />
<cfquery datasource="cfartgallery" name="qRead">
SELECT artistid, firstname, lastname, email
FROM artists
</cfquery>
<cfreturn qRead />
</cffunction>
</cfcomponent>
<!-- test--->
<cfinvoke
component="ArtistGateway"
method="getArtists"
returnVariable="qRead">
<!--- dump the output--->
<cfdump var = "#qRead#">
yep works fine and is easy, I was just wondering is there a function in a cfc
to test directly without have a test.cfm page?
thanks,
Johnny
>How do you mean by test a CFC?
>
>
>this is probably a dumb question, but can I use cfdump to test a cfc?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4921
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15