Section 4: for mURL2attributes
We call section 4 of the core the “formURL2attributes” section. Earlier in the chapter, we mentioned that Fusebox 3 doesn’t have custom tags unless you are running earlier versions of ColdFusion. Section 4 is one of the former tags that is now built into the core.
if (NOT fusebox.isCustomTag) { if (NOT isDefined("attributes")) { attributes=structNew(); } structAppend(attributes, url, "no"); structAppend(attributes, form, "no"); } </cfscript>
The Fusebox framework encourages the use of the attributes scope as the one user-input scope. This is the code that copies all form and URL variables to the attributes scope. By using one scope, you can call a Fusebox application in three different ways:
• <a href="index.cfm?fuseaction=basket.show"> ...
Get Fusebox: Developing ColdFusion® Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.