One of the best reasons for #request.self# is the ability to set it to
something else for unit testing. For example, I use a file called
ShowAllAttributes.cfm when unit testing. So my test harnesses set request.self
to ShowAllAttributes.cfm and then include the file to be tested. When I click
on an exit point (button, link, etc.), I go to ShowAllAttributes.cfm instead of
the fusebox file, thus dumping all attributes info to the browser for me to
inspect.
If you're not unit testing, you should be...
- Jeff
On 30 Mar 2001, at 9:54, Ryan Wood wrote:
> Why in XFB do you use #request.self# rather than #cgi.path_info# or
> #cgi.script_name#? It seems like it takes extra steps to set a variable that
> is already present on the server. Am I missing something?
>
> Ryan
==============================================================
| Jeffrey S. Peters | "Specialization is for insects." |
| [EMAIL PROTECTED] | - Lazarus Long |
| PGP key for Jeffrey S. Peters at ldap://keyserver.pgp.com |
==============================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists