/SampleApplication/ColdBox3/config/coldbox.xml.cfm

http://github.com/bobsilverberg/ValidateThisColdBoxPlugin · ColdFusion · 80 lines · 68 code · 12 blank · 0 comment · 2 complexity · 100390ce2bbbee048bf41929d549c258 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:noNamespaceSchemaLocation="http://www.coldboxframework.com/schema/config_3.0.0.xsd">
  4. <Settings>
  5. <!--The name of your application.-->
  6. <Setting name="AppName" value="cb_skeleton"/>
  7. <!-- If you are using a coldbox app to power flex/remote apps, you NEED to set the AppMapping also. In Summary,
  8. the AppMapping is either a CF mapping or the path from the webroot to this application root. If this setting
  9. is not set, then coldbox will try to auto-calculate it for you. Please read the docs.
  10. <Setting name="AppMapping" value="/MyApp"/> -->
  11. <Setting name="EventName" value="e" />
  12. <!-- Development Settings -->
  13. <Setting name="DebugMode" value="true"/>
  14. <Setting name="DebugPassword" value=""/>
  15. <Setting name="ReinitPassword" value=""/>
  16. <Setting name="HandlersIndexAutoReload" value="false"/>
  17. <Setting name="ConfigAutoReload" value="false"/>
  18. <!-- Implicit Events -->
  19. <Setting name="DefaultEvent" value="General.index"/>
  20. <Setting name="RequestStartHandler" value="Main.onRequestStart"/>
  21. <Setting name="RequestEndHandler" value=""/>
  22. <Setting name="ApplicationStartHandler" value="Main.onAppInit"/>
  23. <Setting name="SessionStartHandler" value=""/>
  24. <Setting name="SessionEndHandler" value=""/>
  25. <!-- Extension Points -->
  26. <Setting name="UDFLibraryFile" value="includes/helpers/ApplicationHelper.cfm" />
  27. <Setting name="PluginsExternalLocation" value="" />
  28. <Setting name="ViewsExternalLocation" value=""/>
  29. <Setting name="LayoutsExternalLocation" value="" />
  30. <Setting name="HandlersExternalLocation" value="" />
  31. <Setting name="RequestContextDecorator" value=""/>
  32. <!-- Error/Exception Handling -->
  33. <Setting name="ExceptionHandler" value=""/>
  34. <Setting name="onInvalidEvent" value=""/>
  35. <Setting name="CustomErrorTemplate" value="" />
  36. <!-- Application Aspects -->
  37. <Setting name="HandlerCaching" value="false"/>
  38. <Setting name="EventCaching" value="false"/>
  39. <Setting name="ProxyReturnCollection" value="false"/>
  40. <Setting name="FlashURLPersistScope" value="session"/>
  41. </Settings>
  42. <YourSettings>
  43. <Setting name="assetPathJS" value="assets/js/"/>
  44. <!--
  45. define ValidateThis settings:
  46. http://www.validatethis.org/docs/wiki/ValidateThisConfig_Struct.cfm
  47. note that ValidateThis will use ColdBox's ModelsPath if you don't specify the definitionPath
  48. -->
  49. <Setting name="ValidateThisConfig" value="{JSRoot:$(assetPathJS)}"/>
  50. </YourSettings>
  51. <!--Declare Layouts for your application here-->
  52. <Layouts>
  53. <!--Declare the default layout, MANDATORY-->
  54. <DefaultLayout>Layout.Main.cfm</DefaultLayout>
  55. </Layouts>
  56. <Interceptors>
  57. <!-- USE ENVIRONMENT CONTROL -->
  58. <Interceptor class="coldbox.system.interceptors.environmentControl">
  59. <Property name='configFile'>config/environments.xml.cfm</Property>
  60. </Interceptor>
  61. <!-- USE AUTOWIRING -->
  62. <Interceptor class="coldbox.system.interceptors.autowire" />
  63. <!-- USE SES -->
  64. <Interceptor class="coldbox.system.interceptors.ses">
  65. <Property name="configFile">config/routes.cfm</Property>
  66. </Interceptor>
  67. </Interceptors>
  68. </Config>