Thanks Matt.

>>-----Original Message-----
>>From: Matt Quackenbush [mailto:[email protected]]
>>Sent: 03 May 2012 17:36
>>To: cf-talk
>>Subject: Re: CFINVOKE - Component Location
>>
>>
>>You'll want to use dot notation. So, using your example of
>>/gallerycomponents/functions.cfc, you'd do the following:
>>
>><cfinvoke component="gallerycomponents.functions" method="foo" />
>>
>>HTH
>>
>>
>>On Thu, May 3, 2012 at 11:29 AM, Jenny Gavin-Wear <
>>[email protected]> wrote:
>>
>>>
>>> Hi Ray,
>>>
>>> Thanks for your reply.
>>>
>>> Yes I could use a cfmapping, however ....
>>>
>>> I'm a bit confused as I thought the cfmappings were for accessing
>>> files outside the web root or its sub-directories.
>>>
>>> I read "By default, ColdFusion MX defines a mapping for the web root
(/).
>>> You can define additional mappings to allow access to pages outside of
>>> the web root."  So I don't understand why I can't use this default
>>> mapping- I realise I can't bit I also realise I need to understand why.
>>>
>>> I created a cfmapping pointing to a directory inside the webroot of
>>> the application called /gallerycomponents.
>>>
>>> Then I tried running the cfinvoke as follows, but it appears I have
>>> some syntax wrong.
>>>
>>> <cfinvoke component="/gallerycomponents/functions.cfc"
>>> method="getTags">
>>>
>>> I read up in your book, CF 7 Construction Kit, that a mapping can be
>>> used when invoking the component, but there wasn't a syntax example
>>> using a mapping.
>>>
>>> Thanks,
>>>
>>> Jenny
>>>
>>> >>-----Original Message-----
>>> >>From: Raymond Camden [mailto:[email protected]]
>>> >>Sent: 03 May 2012 16:51
>>> >>To: cf-talk
>>> >>Subject: Re: CFINVOKE - Component Location
>>> >>
>>> >>
>>> >>Can you use a cfmapping?
>>> >>
>>> >>On Thu, May 3, 2012 at 10:43 AM, Jenny Gavin-Wear
>>> >><[email protected]> wrote:
>>> >>>
>>> >>> Hi all,
>>> >>>
>>> >>> I'm trying to work out how to point to the file location of a
>>> >>> component using cfinvoke.
>>> >>>
>>> >>> I am storing all of the component files for my application in one
>>> >>> directory which is one step off the web root.
>>> >>>
>>> >>> Many thanks in advance,
>>> >>>
>>> >>> Jenny
>>> >>>
>>> >>> --
>>> >>> I am using the free version of SPAMfighter.
>>> >>> We are a community of 7 million users fighting spam.
>>> >>> SPAMfighter has removed 29195 of my spam emails to date.
>>> >>> Get the free SPAMfighter here: http://www.spamfighter.com/len
>>> >>>
>>> >>> The Professional version does not have this message
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>
>>>
>>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~~
>>> >>~~~~~~~~~~~|
>>> >>Order the Adobe Coldfusion Anthology now!
>>> >>http://www.amazon.com/Adobe-Coldfusion-
>>> >>Anthology/dp/1430272155/?tag=houseoffusion
>>> >>Archive: http://www.houseoffusion.com/groups/cf-
>>> >>talk/message.cfm/messageid:350974
>>> >>Subscription:
>>> >>http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
>>> >>Unsubscribe: http://www.houseoffusion.com/groups/cf-
>>> >>talk/unsubscribe.cfm
>>>
>>> --
>>> I am using the free version of SPAMfighter.
>>> We are a community of 7 million users fighting spam.
>>> SPAMfighter has removed 29195 of my spam emails to date.
>>> Get the free SPAMfighter here: http://www.spamfighter.com/len
>>>
>>> The Professional version does not have this message
>>>
>>>
>>>
>>>
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~~~~~~~~~~~|
>>Order the Adobe Coldfusion Anthology now!
>>http://www.amazon.com/Adobe-Coldfusion-
>>Anthology/dp/1430272155/?tag=houseoffusion
>>Archive: http://www.houseoffusion.com/groups/cf-
>>talk/message.cfm/messageid:350977
>>Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
>>Unsubscribe: http://www.houseoffusion.com/groups/cf-
>>talk/unsubscribe.cfm

--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 29200 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350981
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to