Thanks Rich. That's a relief!!
Yes, CF_XFB does sort of take the place of FORMURL2ATTRIBUTES. Actually, it
does a whole lot more:
- Scopes form and URL vars to ATTRIBUTES (CF_all2scope)
- Sets up circuit definitions by recursively reading circuits.cfm files
(CF_addCircuits)
- Translates two part fuseaction into a fully qualified hierarchical
fuseaction (if not already done)
- Returns a structure (XFB) with two variables (myAction:boolean and
nextCircuit:a subdir) so that index.cfm doesn't have to deal with the
request.circuits list.
To summarise, CF_XFB implements Hals' XFB architecture, while removing most
of the code from index.cfm. This has a few benefits:
- Doesn't frighten people;
- Makes index.cfm MUCH more readable;
- Allows site-wide changes to be made to the XFB architecture by simply
changing the CF_XFB tag;
- Prevents developers from breaking the basic XFB logic when all they want
to do is add a new fuseaction to index.cfm.
More controversial (I imagine) is CF_AddCircuits, which makes recursive
calls to the circuits.cfm files to build the entire circuits definition. On
my low-end NT machine, the recursive processing adds 20 milliseconds to each
page with an application with four sub-circuits. On the other hand, the
definition of the circuits does not have to duplicated in every circuit's
circuits.cfm. This makes maintenance and enhancement much simpler, ad is
inherently more robust.
Have a play with it all, and let me know how it all looks,
Thanks very much for you interest,
Lee.
-----Original Message-----
From: ibtoad
OK its working now. So xfb.cfm takes the place of
formurl2attributes.cfm?
-----Original Message-----
From: BORKMAN Lee [mailto:[EMAIL PROTECTED]]
Hi Toad,
It looks like you have the previous version. If you get the latest from
Bjork.net, it should be fine.
....
IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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