The Skeleton Application
The Fusebox skeleton application is set of files to begin building your Fusebox application. It contains all the files necessary to run a fusebox application with the exception of the core files. The core files can be downloaded separately. The core files are a separate download to make it easier to upgrade your existing Fusebox 5+ applications.
The Directory Structure
The skeleton directory structure has certain directories that must be in any Fusebox 5+ application and cannot be renamed. The directories must also remain in the same relation to the other required directories (in other words, you can't move them around.) All the directories in the Skeleton application are required to be together with the exception of the following:
- Controller
- Model
- Views
The directory structure of the skeleton application is as follows:
Controller
A place holder for your Controller sub directories and circuit.xml files should you be using a MVC (Model/View/Controller) design pattern.
errortemplates
User modifiable Fusebox error templates. Shows up when a fusebox error is thrown.
lexicon
A series of sub directories containing lexicons for use in your circuit.xml file. A lexicon is a way of extending the fusebox xml grammar without adding more complexity to the core. In Fusebox 5 and up, all commands are actually created as lexicons.
model
A place holder for your Model sub directories, circuit.xml files and fuses containing business logic and queries should you be using the MVC design pattern
parsed
All parsed files that Fusebox generates goes into this directory. Make sure that Fusebox has writing rights to this directory.
plugins
Directory to place any Fusebox plugins your application might use.
views
A place holder for your View sub directories and circuit.xml files as well as display and layout fuses.
Top Level Files
The top level files are as follows:
- Application.cfm
- fusebox.appinit.cfm
- fusebox.init.cfm
- index.cfm