Hi Andrew,
Thanks`-`
I have a post here:
http://hawaiiflash.net/blog/post.cfm/cfdump-in-a-cfc

Maybe this will help somebody else too`-` found out you can use the cfdump in 
the cfc too.

>Hey John,
>
>There are many ways to do some form of testing, and this one is the most
>basic of them all. Glad you figured it out.
>
>
>
>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 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4923
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to