plugins

The last element in the fusebox.xml is the plugins element. Plugins are a way to extend the functionality of the Fusebox core files.

The plugins element can contain several phase elements which define six possible places where the fusebox core can be extended.

    <plugins>
        <phase name="preProcess"></phase>
        <phase name="preFuseaction"></phase>
        <phase name="postFuseaction"></phase>
        <phase name="fuseactionException"></phase>
        <phase name="postProcess"></phase>
        <phase name="processError"></phase>
    </plugins>

An individual plugin can be declared like this inside any given phase:

    <plugin name="pluginName" template="pluginFile"/>

This tells Fusebox to execute pluginFile.cfm during the appropriate phase of the request lifecycle. You can optionally specify a path attribute which specifies the path of the template relative to the plugins folder. As of Fusebox 5.1, you can specify an absolute (or mapped) path which then ignores the plugins folder and uses a path relative to the webroot or resolved via a mapping. The template attribute itself can specify an absolute (or mapped) path which will ignore the path attribute as well as the plugins folder.

As of Fusebox 5.1, the plugin declaration may also include custom attributes that use XML prefixes declared on the <fusebox> tag at the head of the Fusebox XML file.

For more details on this please read the Extending the framework with plugins page.