Changeset 637
- Timestamp:
- 05/08/07 07:25:07 (6 years ago)
- Location:
- coldbox/trunk/src
- Files:
-
- 2 modified
-
config/config.xml.cfm (modified) (1 diff)
-
handlers/ehGeneral.cfc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/src/config/config.xml.cfm
r588 r637 24 24 <Setting name="MessageboxStyleClass" value="mymessagebox" /> 25 25 <Setting name="HandlersIndexAutoReload" value="false" /> 26 <Setting name="ConfigAutoReload" value=" false" />26 <Setting name="ConfigAutoReload" value="true" /> 27 27 <Setting name="ExceptionHandler" value="" /> 28 28 <Setting name="onInvalidEvent" value="ehGeneral.doinvalid" /> -
coldbox/trunk/src/handlers/ehGeneral.cfc
r610 r637 48 48 var logger = controller.getPlugin("logger"); 49 49 logger.logEntry("information","I am in the onSessionStart baby."); 50 //set the default event to fire or relocate. 51 event.overrideEvent(getSetting("DefaultEvent")); 50 52 </cfscript> 51 53 </cffunction> … … 78 80 79 81 <cfset Event.setValue("MailBean",getMailSettings())> 80 82 83 <cfset getPlugin("timer").start("New Instance Creation")> 81 84 <!--- Get a new instance plugin ---> 82 85 <cfset event.setValue("mylogger", getPlugin("logger",false,true) )> 83 86 <cfset event.getValue("mylogger").setLogFullPath(ExpandPath("./config/luis.log"))> 84 87 <cfset getPlugin("timer").stop("New Instance Creation")> 88 85 89 <!--- Create a tracer message ---> 86 90 <cfset logger.tracer("Starting dspHello. Using default name")> … … 90 94 <!--- Set the firstname Value ---> 91 95 <cfset Event.setValue("firstname",controller.getSetting("Codename", true) & controller.getSetting("Version", true))> 92 <!--- Set the View To Display, after Logic ---> 93 <cfset Event.setView("vwHello")> 96 94 97 <!--- Set another tracer variable ---> 95 98 <cfset logger.tracer("View has been set")> 99 96 100 <!--- Create a simple permanent variable ---> 97 101 <cfset storage.setvar("luis","Luis Majano")> 102 98 103 <!--- Permanent Complex Variable ---> 99 104 <cfset complexStruct = structnew()> … … 103 108 <cfset storage.setvar("complexStruct",complexStruct)> 104 109 <cfset complete = isEmail("lmajano@gmail.com")> 110 111 <!--- Java Loader ---> 105 112 <cfset Event.setvalue("HelloWorldObj", application.loader.create("HelloWorld").init())> 113 106 114 <!--- Create an info MessageBox ---> 107 <cfset controller.getPlugin("messagebox").setMessage("info", "Hello and welcome to the ColdBox' message box. You can place messages here from any of your applications. You can also choose the desired image to display. You can set error message, warning messages or just plain informative messages like this one. You can do this by using the <b>messagebox</b> plugin.")> 115 <cfset getPlugin("messagebox").setMessage("info", "Hello and welcome to the ColdBox' message box. You can place messages here from any of your applications. You can also choose the desired image to display. You can set error message, warning messages or just plain informative messages like this one. You can do this by using the <b>messagebox</b> plugin.")> 116 108 117 <!--- Get view contents ----> 109 118 <cfset Event.setValue("MyQuote", renderView("vwQuote"))> 119 <!--- Set the view to render ---> 120 <cfset Event.setView("vwHello")> 110 121 </cffunction> 111 122 <!--- ************************************************************* --->
