Inline Fuseactions
Fusebox CFC based circuits lend some nifty abilities for those of us who are acustomed to the traditional XML based circuits. In that you can call a Circuit Fuseaction from within your .cfm file by executing an inline do action.
Example
<cfset myFusebox.do(action="vReminders.dspListReminders", contentvariable="content.main")/>
The code above shows how we can execute a Circuit.Fuseaction within out .cfm file code using a standard ColdFusion cfset.
This is often times helpful in code re-use when you are within your ColdFusion template file, perhaps looping a query, and need access to a particular Fuseaction.
Additional Information
- Comparing Fusebox Circuits XML vs CFC A deeper dive to side by side XML vs CFC Fusebox Code.
Comments
There are currently no comments on this fusearticle.Be the first to comment



