I'm trying to create a CFC and I am having a difficult time. This
worked great as an include, but I thought it would be nice to learn
something about objects. At this point, all I want to do is make an
object, a method, and have it return something on a web page. Almost
anything will do. I have:
<cfcomponent namespace="breadcrumb" hint="breadcrumb" output="no">
<cffunction name="create_breadcrumb" access="public"
returntype="string" output="false" hint="breadcrumb">
<cfargument name="current_file" type="string"
required="no">
<cfset the_file_dir =
GetDirectoryFromPath(GetTemplatePath())>
<cfset the_file_dir = "sdfsdf">
<cfreturn the_file_dir>
</cffunction>
</cfcomponent>
On the web page, I have:
<cfinvoke component="/includes/breadcrumb.cfc"
method="create_breadcrumb">
and I get the error:
Could not find the ColdFusion Component or Interface /includes/
breadcrumb.cfc.
It's in the includes directory. I'm sure it's something simple and
I'm sure I'm a bit brain-dead at this point in the day, but any hint
would be nice.
thank you.
--
Daniel Kessler
University of Maryland College Park
School of Public Health
3302E HHP Building
College Park, MD 20742-2611
Phone: 301-405-2545
http://sph.umd.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299022
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4