[thelist] CF: Attributes to Locals?
.jeff
jeff at members.evolt.org
Fri Sep 14 07:53:11 CDT 2001
raymond,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Raymond Camden
>
> If you want altnatives, you can also do this, which
> would make all the copies at once...
>
> <CFLOOP ITEM="Key" COLLECTION="#Attributes#">
> <CFSET "#Key#" = Attributes[Key]>
> </CFLOOP>
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
if you're executing this bit of code within a custom tag then it would work
fine. however, if you're trying to execute it outside of a custom tag
you'll get an error that attributes is not defined. that's because the
attributes scope doesn't exist outside of a custom tag. despite this fact,
the attributes scope is advocated by the fusebox methodology and used by
many.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> This assumes, however, that your attribute names are
> all proper variables names, which may not be true.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
this is a very valid concern.
thanks,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list