|
Mailing Lists
|
Home / Groups / ColdFusion Talk (CF-Talk)
CFINVOKE - Component LocationContinuing 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 >> >> >> >> |
May 20, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||