In essence, refering to variables outside the scope of a tag
is analogous to using global variables in other languages, something
that was frowned upon in the books I read and the courses I took.
The proper way, then, would be to explicitly pass all necessary
parameters to a tag, and
Aidan Whitehall wrote:
In essence, refering to variables outside the scope of a tag
is analogous to using global variables in other languages, something
that was frowned upon in the books I read and the courses I took.
The proper way, then, would be to explicitly pass all necessary
Jeff,
I'm with you. When I raised this issue in December '99, Dave Watts
pointed out that just because you can do something doesn't mean that you
should.
-David
On Wed 06 Dec 2000 Jeffry Houser [EMAIL PROTECTED] wrote:
Shouldn't custom tags be coded to be as self-contained as
possible? If
, December 12, 2000 10:29 AM
Subject: Re: What are the recognized CF variable scopes?
Jeff,
I'm with you. When I raised this issue in December '99, Dave Watts
pointed out that just because you can do something doesn't mean that you
should.
-David
On Wed 06 Dec 2000 Jeffry Houser [EMAIL PROTECTED] wrote
ber 06, 2000 1:02 PM
Subject: Re: What are the recognized CF variable scopes?
1.) What is the Request scope?
/CFDOCS/Developing_Web_Applications_with_ColdFusion/07_Reusing_Code/dwa07_07
..htm
~~
Structure your ColdFusion code with Fuseb
This is always a matter of interest in my classes, i.e. where can one find a
definitive listing. The following Allaire Knowledgebase article names many,
but leaves off a few (IMHO), including:
Attributes.
Caller.
CFHTTP.
ERROR.
CFCatch.
Folks,
I have seen a mention on this list in the last couple of days something
called the request scope for CF variables. I had never heard of it. Until
now I had only heard of the Application, Client, Session, Form, Query, and
Attributes scopes as well as the local variable scope.
Now I have a
dnesday, December 06, 2000 11:15 AM
Subject: What are the recognized CF variable scopes?
Folks,
I have seen a mention on this list in the last couple of days something
called the request scope for CF variables. I had never heard of it. Until
now I had only heard of the Application, Client,
I can add in my two cents, although it probalby isn't the complete list.
The 'variables' scope is for local, or instance variables. They only
exist during the execution of the page which they are created (I.E.
with a CFSET, for example).
There is also the URL scope. (Is that a type of
k" [EMAIL PROTECTED]
Sent: Wednesday, December 06, 2000 8:15 AM
Subject: What are the recognized CF variable scopes?
Folks,
I have seen a mention on this list in the last couple of days something
called the request scope for CF variables. I had never heard of it. Until
now I had only he
1.) What is the Request scope?
/CFDOCS/Developing_Web_Applications_with_ColdFusion/07_Reusing_Code/dwa07_07.htm
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
: What are the recognized CF variable scopes?
Tim, I came across the mentioning of request variables in the fusebox
methodology book also you can find the usage of the request variables in the
code that makes up the fusebox.org site.
I am still very confused about the usage of the request variables
The more I hear people talk about this topic, the more I'm getting
curious about the request scope.
If you are using these 'local' variables that are accessible via custom
tags, doesn't that decrease the re-usability of your custom tag, if you are
counting on this 'global' variables
13 matches
Mail list logo