Richard,
objSecurity = createObject("component","security");
The above line is creating an instance of security.cfc in your webroot and
assigning the object to objSecurity.
bAuthorized = objSecurity.authorize(form.user,form.groupID);
This line invokes the authorize function of security.cfc and passes in the
user and groupID. Yes, the order matters.
Teddy
On 1/11/07, Richard Cooper <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I've tried to read up on this but can't quite find the confirmations I'm
> looking for.
>
> Can anyone explain how the cfc knows which values to use & where, when the
> code for example, is like this:
>
> <cfscript>
> objSecurity = createObject("component","security");
> bAuthorized = objSecurity.authorize(form.user,form.groupID);
> </cfscript>
>
> Is it just matched to the order of the cfarguments?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266239
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4