House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

CFINVOKE - Component Location

Author:
Matt Quackenbush
05/03/2012 01:55 PM

Continuing on that thought (hit [send] too soon)... On the other hand, *.cfm "templates" match up with a standard file, and therefore use the traditional web separator, the slash (/). On Thu, May 3, 2012 at 12:52 PM, Matt Quackenbush <quackfuzed@gmail.com>wrote: > CFCs have used dot notation since Day 1 of their existence. The reason is > because CFCs (loosely) represent classes, which are grouped in packages. In > other languages, like Java - which CF runs on top of, those packages are > always denoted in dot notation. For example: > > java.util.List > java.net.InetAddress > java.io.File > > HTH > > > > On Thu, May 3, 2012 at 12:38 PM, Rick Faircloth <Rick@whitestonemedia.com>wrote: > >> >> Just for clarification... >> >> Why would CF begin to use dot notation for cfc's instead of sticking >> with the familiar "../", etc, syntax? >> >> The dot notation has been a pain in my rear on more than one occasion. >> >> Rick >> >> On Thu, May 3, 2012 at 11:29 AM, Jenny Gavin-Wear >> <jennygw@fasttrackonline.co.uk> wrote: >> > >> > Then I tried running the cfinvoke as follows, but it appears I have some >> > syntax wrong. >> > >> > <cfinvoke component="/gallerycomponents/functions.cfc" method="getTags"> >> >> No, you use "dot" notation for CFCs. >> >> Try >> >> <cfinvoke component="gallerycomponents.functions" method="getTags"> >> >> -ray >> >> >> >>


Search cf-talk

May 20, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference