Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / January 2007



Tip: Looking for answers? Try searching our database.

Cold Fusion Components not found!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vncntj@hotmail.com - 29 Jan 2007 21:12 GMT
I have this component:
<cfcomponent displayname="customer" hint="ColdFusion Component for
Customers" >
<!--- This function retrieves all customers from the database --->
<cffunction name="retrieveCustomers"
    hint="Gets all customer from the database" returntype="query">
  <cfquery name="getCustomers" datasource=blah>
    select department from tbDepartments
    </cfquery>
  <cfreturn getCustomers>
</cffunction>
</cfcomponent>

that is in a folder C:\Inetpub\wwwroot\specialevents\components\ and
being invoke by

<cfinvoke component="customer"
    method="retrieveCustomers"
    returnvariable="allCustomers"></cfinvoke>

<cfoutput query="allCustomers">
    #department#<br>
</cfoutput>

but i still get:

Could not find the ColdFusion Component customer
sid.wing@gmail.com - 30 Jan 2007 13:29 GMT
If the CFC is called customer.cfc is stored in C:\Inetpub\wwwroot
\specialevents\components\ and the page that contains your invoke is
in C:\Inetpub\wwwroot\ then the invoke commmand works like this:

<cfinvoke component="specialevents.components.customer"
       method="retrieveCustomers"
       returnvariable="allCustomers"></cfinvoke>

The "component" attribute of cfinvoke utilizes the dot notation path
style to point to any cfc that is not located in the same local
directory, the web root, or any custom tag paths that you have defined
in the CF Administrator.

On Jan 29, 3:12 pm, vnc...@hotmail.com wrote:
> I have this component:
> <cfcomponent displayname="customer" hint="ColdFusion Component for
[quoted text clipped - 23 lines]
>
> Could not find the ColdFusion Component customer
vncntj@hotmail.com - 30 Jan 2007 15:02 GMT
You rock!  The .cfc file was misspelled!!!

:)

On Jan 30, 8:29 am, "sid.w...@gmail.com" <sid.w...@gmail.com> wrote:
> If the CFC is called customer.cfc is stored in C:\Inetpub\wwwroot
> \specialevents\components\ and the page that contains your invoke is
[quoted text clipped - 38 lines]
>
> > Could not find the ColdFusion Component customer- Hide quoted text -- Show quoted text -
sid.wing@gmail.com - 31 Jan 2007 13:43 GMT
LOL - If I had a nickel for everytime THAT has happened to me or one
of my programmers... LOL

Glad to be of help...

On Jan 30, 9:02 am, vnc...@hotmail.com wrote:
> You rock!  The .cfc file was misspelled!!!
>
[quoted text clipped - 46 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.