|
Hi chz,
In Fusebox, and particularly in FB3, all input parameters
(form, url and attributes) are copied to the standard CF scope called
"attributes". After that, the form and url scopes are hardly ever
referenced. This means that your code normally won't know or care
where the inputs came from. This is a great aid to code
re-use, meaning that your code can be used in all kinds of circumstances, eg the
code that updates data in a database record could receive the data from an HTML
form, or passed as URL variables after some data validation, or the data could
even be passed as attributes in a cfmodule call. You code won't
care.
So in general, when you see something called
"attributes.xxx" in a Fusebox app, it's probably user input.
Request-scoped variables, on the other hand, are global to
any given HTTP request, and are thus available to all of your code, including
custom tags and recursive cfmodule calls. In Fusebox, request-scope is
often used for holding fundamental application constants (like the title of the
app, or the datsource name). There is also some thought that request-scope
is less susceptible to user "tainting". Nevertheless, most of the usual
warnings about using global variables apply to request-scope. Their use is
often seen to violate the principles of encapsulation, etc.
Does that make any sense?
LeeBB
----- Original Message -----
==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================ |
- attributes.anything chzumbrunnen
- Re: attributes.anything ( URL please? ) Lee Borkman
- Re: attributes.anything ( URL please? ) Jerzy Kalat
- RE: attributes.anything chzumbrunnen
- RE: attributes.anything Paul Schmidt
- RE: attributes.anything Claudio Naldi
- Re: attributes.anything Anthony Cooper
- Re: attributes.anything Jeff Peters
- RE: attributes.anything Paul Schmidt
- Re: attributes.anything Jeff Peters
- Re: attributes.anything Jeff Peters
- RE: attributes.anything chzumbrunnen
