Application.cfc Helper Includes

If your plugin requires its own Application.cfc, Mura provides helper includes that allow your plugin to stay in sync with the Mura application request lifecycle.

These files live in the {mura_root}/config/appcfc/ directory. There is one file that includes the entire method, and one file that only contains the business logic for each or the Application.cfc events that Mura interacts.

These are critically important in plugins that might be accessed outside of a normal Mura page, such as web service end-points. If your plugin is using the Mura Scope or indeed any part of Mura, you must ensure that Mura has initialized properly for these functions and services to be available. 

To accomplish this, simply include the appropriate method or include file in your plugin's own start-up events such as onApplicationLoad().

/plugin/Application.cfc