-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathModuleConfig.cfc
52 lines (45 loc) · 1.41 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
* www.ortussolutions.com
* ---
*/
component {
// Module Properties
this.title = "Route Visualizer";
this.author = "Ortus Solutions";
this.webURL = "https://www.ortussolutions.com";
this.description = "A development module to visualize your application routes";
this.version = "@build.version@[email protected]@";
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa
this.viewParentLookup = true;
// If true, looks for layouts in the parent first, if not found, then in module. Else vice-versa
this.layoutParentLookup = true;
// Module Entry Point
this.entryPoint = "route-visualizer";
// Inherit Entry Point
this.inheritEntryPoint = false;
// Model Namespace
this.modelNamespace = "route-visualizer";
// Auto-map models
this.autoMapModels = true;
// Module Dependencies
this.dependencies = [];
function configure(){
// module settings - stored in modules.name.settings
settings = {};
// Home Route
router.route( "/" ).to( "Home.index" );
// Layout Settings
layoutSettings = { defaultLayout : "Main" };
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){
}
}