Undocumented FB4

Posted by: scoopseven 17 years, 1 month ago

Me: What does the circuit attribute in <include template="lay_main" circuit="view"> do? I often include templates and use content variables, but I've never seen the circuit attribute used in a xml include. Sean: It was an undocumented feature of FB4 - as I discovered when I did *not* implement it in an early Fusebox 5 build and lots of people complained I broke their code! It pulls in the fuse from the named circuit. It is now a *documented* part of Fusebox 5: http://fuseboxframework.org/index.cfm?fuseaction=documentation.WhatsNewInFusebox5 "It's also worth noting that the following form of is now officially supported in Fusebox 5 - it was undocumented in Fusebox 4.1: This looks in the directory of somecircuit (as specified by the path attribute in somecircuit's declaration in fusebox.xml) for the fuse somefuse.cfm and includes it. This can be useful in MVC-style applications that would otherwise have a lot of fuseactions that simply a single fuse but are used (via ) from other circuits. For example, View circuits often have many simple fuseactions that just a display fuse (and Model circuits may have simple fuseactions that just action or query fuses). The circuit= form of allows the Controller circuits to display (or action / query) fuses directly without requiring the intermediate simple fuseaction in the View (or Model) circuits." Sean A Corfield An Architect's View -- http://corfield.org/

Currently unrated


Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom