Connecting Tech Pros Worldwide Help | Site Map

How can I use use "cfinvoke" is file is in different directory?

Haitashi's Avatar
Member
 
Join Date: Jun 2007
Location: Orlando, FL
Posts: 94
#1: Nov 9 '07
Expand|Select|Wrap|Line Numbers
  1. <cfinvoke component="Alert" method="send" returnvariable="success">
  2.         <cfinvokeargument name="oFusebox" value="#myfusebox#" />
  3. </cfinvoke>
The component called Alert works if it's in the same directory as the file that contains the previous code.

But the goal is to have that file is in a subdirectory and the file that contains the Alert component is in the root directory.

How can I reference it?

Thanks!!
Haitashi's Avatar
Member
 
Join Date: Jun 2007
Location: Orlando, FL
Posts: 94
#2: Nov 9 '07

re: How can I use use "cfinvoke" is file is in different directory?


I found out how.
Starting from the root folder, write all the folder names and have then joined by dots.

Example: "cfc.utility.facade.Alert"
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#3: Nov 11 '07

re: How can I use use "cfinvoke" is file is in different directory?


Glad you managed to figure it out and thanks for posting the solution.

The dots must have something to do with the underlying Java which uses the same notation.
Reply