| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!DOCTYPE fusebox> |
|---|
| 3 | <!-- |
|---|
| 4 | Example fusebox.xml control file. Shows how to define circuits, classes, |
|---|
| 5 | parameters and global fuseactions. |
|---|
| 6 | |
|---|
| 7 | This is just a test namespace for the plugin custom attribute example |
|---|
| 8 | --> |
|---|
| 9 | <fusebox xmlns:test="test"> |
|---|
| 10 | <!-- |
|---|
| 11 | this is a model-view-controller application |
|---|
| 12 | there is one public controller circuit (controller/, aliased to app) |
|---|
| 13 | there is one internal model circuit (model/time/, aliased to time) |
|---|
| 14 | there are two internal view circuits: |
|---|
| 15 | view/display, aliased to display |
|---|
| 16 | view/layout, aliased to layout |
|---|
| 17 | --> |
|---|
| 18 | <circuits> |
|---|
| 19 | <!-- illustrates defaults for parent ("") and relative ("true") --> |
|---|
| 20 | <circuit alias="time" path="model/time/" parent="" /> |
|---|
| 21 | <circuit alias="display" path="view/display/" parent="" /> |
|---|
| 22 | <circuit alias="layout" path="view/layout/" parent="" /> |
|---|
| 23 | <circuit alias="app" path="controller/" relative="true" /> |
|---|
| 24 | </circuits> |
|---|
| 25 | |
|---|
| 26 | <!-- |
|---|
| 27 | <classes> |
|---|
| 28 | <class alias="MyClass" type="component" classpath="path.to.SomeCFC" constructor="init" /> |
|---|
| 29 | </classes> |
|---|
| 30 | --> |
|---|
| 31 | |
|---|
| 32 | <parameters> |
|---|
| 33 | <parameter name="defaultFuseaction" value="app.welcome" /> |
|---|
| 34 | <!-- possible values: development-circuit-load, development-full-load or production: --> |
|---|
| 35 | <parameter name="mode" value="development-full-load" /> |
|---|
| 36 | <parameter name="conditionalParse" value="true" /> |
|---|
| 37 | <!-- change this to something more secure: --> |
|---|
| 38 | <parameter name="password" value="skeleton" /> |
|---|
| 39 | <parameter name="strictMode" value="true" /> |
|---|
| 40 | <parameter name="debug" value="true" /> |
|---|
| 41 | <!-- we use the core file error templates --> |
|---|
| 42 | <parameter name="errortemplatesPath" value="/fusebox5/errortemplates/" /> |
|---|
| 43 | <!-- |
|---|
| 44 | These are all default values that can be overridden: |
|---|
| 45 | <parameter name="fuseactionVariable" value="fuseaction" /> |
|---|
| 46 | <parameter name="precedenceFormOrUrl" value="form" /> |
|---|
| 47 | <parameter name="scriptFileDelimiter" value="cfm" /> |
|---|
| 48 | <parameter name="maskedFileDelimiters" value="htm,cfm,cfml,php,php4,asp,aspx" /> |
|---|
| 49 | <parameter name="characterEncoding" value="utf-8" /> |
|---|
| 50 | <parameter name="strictMode" value="false" /> |
|---|
| 51 | <parameter name="allowImplicitCircuits" value="false" /> |
|---|
| 52 | --> |
|---|
| 53 | </parameters> |
|---|
| 54 | |
|---|
| 55 | <globalfuseactions> |
|---|
| 56 | <appinit> |
|---|
| 57 | <fuseaction action="time.initialize"/> |
|---|
| 58 | </appinit> |
|---|
| 59 | <!-- |
|---|
| 60 | <preprocess> |
|---|
| 61 | <fuseaction action="time.preprocess"/> |
|---|
| 62 | </preprocess> |
|---|
| 63 | <postprocess> |
|---|
| 64 | <fuseaction action="time.postprocess"/> |
|---|
| 65 | </postprocess> |
|---|
| 66 | --> |
|---|
| 67 | </globalfuseactions> |
|---|
| 68 | |
|---|
| 69 | <plugins> |
|---|
| 70 | <phase name="preProcess"> |
|---|
| 71 | <!-- |
|---|
| 72 | <plugin name="prePP" template="example_plugin" test:abc="123"> |
|---|
| 73 | <parameter name="def" value="456" /> |
|---|
| 74 | </plugin> |
|---|
| 75 | --> |
|---|
| 76 | </phase> |
|---|
| 77 | <!-- |
|---|
| 78 | <phase name="preFuseaction"> |
|---|
| 79 | </phase> |
|---|
| 80 | <phase name="postFuseaction"> |
|---|
| 81 | </phase> |
|---|
| 82 | <phase name="fuseactionException"> |
|---|
| 83 | </phase> |
|---|
| 84 | <phase name="postProcess"> |
|---|
| 85 | </phase> |
|---|
| 86 | <phase name="processError"> |
|---|
| 87 | </phase> |
|---|
| 88 | --> |
|---|
| 89 | </plugins> |
|---|
| 90 | |
|---|
| 91 | </fusebox> |
|---|