Attributes scope in a cfc

2010-05-30 Thread Matthew P. Smith

Any way to access the attributes scope in a cfc without passing it in as a
argument?


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


Re: Attributes scope in a cfc

2010-05-30 Thread Barney Boisvert

What attributes scope?  If you mean the structure
variables.attributes that is created from the form and url scopes by
some front controller frameworks, then no, since it's just a struct
(not a scope).  In general, however, referencing the environment from
within a CFC is a bad idea.  In nearly all cases you should be passing
in everything you need.

cheers,
barneyb

On Sun, May 30, 2010 at 12:00 PM, Matthew P. Smith m...@smithwebdesign.net 
wrote:

 Any way to access the attributes scope in a cfc without passing it in as a
 argument?


 

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


Re: Attributes scope in a cfc

2010-05-30 Thread Andrew Scott

Matthew,

The attributes scope belongs to the custom tags, can you elaborate some more
on what you actually mean or are looking at doing then we maybe able to
point you in the right direction from that.

But I am going to take the first punt and assume you mean the arguments that
are passed into a CFC, if so then this is the arguments scope.


On Mon, May 31, 2010 at 5:00 AM, Matthew P. Smith 
m...@smithwebdesign.netwrote:


 Any way to access the attributes scope in a cfc without passing it in as a
 argument?


 

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