Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Switch file


The Fusebox switch file fbx_switch.cfm decides which fuses to call to accomplish the requested fuseaction . It is basically a CFSWITCH statement on the fuseaction variable with one or more CFLINCLUDEs to fuse files that do the actual work; the display (dsp_*.cfm), CFML actions (act_*.cfm) or SQL queries (qry_*.cfm). The resulting HTML is captured using CFSAVECONTENT by the Fusebox core file. It is then displayed by the layout file specified in this circuits fbx_layouts.cfm file. This helps separate graphical layout from code. The resulting HTML is passed back up through the parent circuits providing for nest layout of menu options. Similarly as errors are caught by the fbx_errorCatch.cfm file and may be optionally bubbled up through the parent circuits to the root circuit.

Finally the core file outputs the completed nested layout. Layouts may also be selected based on user interaction or personalization settings. A simple fbx_switch.cfm is shown below.

I received a fuseaction called #fusebox.fuseaction#" that circuit "#fusebox.circuit#" doesn't have a handler for.



Read more »

Non User