<globalfuseactions>

The next element in the fusebox.xml file is globalfuseactions. Within this are two sub- elements: preprocess and postprocess. Here is an example of the latest fusebox 5 syntax for these elements:

    <globalfuseactions>
        <appinit>

        </appinit>
        <preprocess>
            
        </preprocess>
        <postprocess>
            
        </postprocess>
    </globalfuseactions>

In preprocess, you can specify fuseactions to execute at the beginning of every request. Conversely, postprocess lets you run fuseactions at the end of every request. Any Fuseactions specified in the appinit element are executed only at the start of the application. The is a new facility in Fusebox 5. There are some special considerations with the appinit fuseactions and plugins.

In Fusebox 4, the only XML verb allowed in globalfuseactions was do. In Fusebox 4.1, the use of do has been deprecated in favour of using fuseaction. We'll cover do, fuseaction, and the other Fusebox XML verbs in the the circuit XML grammar.