Changeset 629
- Timestamp:
- 05/06/07 04:59:58 (6 years ago)
- Location:
- coldbox/trunk/ApplicationTemplate
- Files:
-
- 1 added
- 3 modified
-
build.xml (modified) (3 diffs)
-
config/config.xml.cfm (modified) (3 diffs)
-
handlers/ehGeneral.cfc (modified) (3 diffs)
-
handlers/ehMain.cfc (added)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/ApplicationTemplate/build.xml
r515 r629 9 9 10 10 The task will generate a new application template for you in a 11 directory named GENERATEDAPP. You can change the name of the generated 12 folder if you want below. 11 directory of your choice, full path. 13 12 ====================================================================== --> 14 13 <project name="coldbox.newapplication" default="generate" basedir="."> 15 14 <!--Properties--> 16 <property name="destination" value="GENERATEDAPP" />17 15 <property name="src.dir" value="." /> 18 16 … … 23 21 <input message="What is the name of your application: (Ex:blog,forum)?" 24 22 addproperty="app.name"/> 23 <input message="What is the destination directory: (Ex:/data/webroot)?" 24 addproperty="destination" /> 25 25 </target> 26 26 … … 59 59 <replacetoken>Your App Name here</replacetoken> 60 60 </replace> 61 <!--Replace AppName in eclipse project --> 62 <replace file="${destination}/${app.name}/.project" value="${app.name}" summary="yes"> 63 <replacetoken>@appname@</replacetoken> 64 </replace> 61 65 <!--Delete Header File--> 62 66 <delete file="header.txt" /> -
coldbox/trunk/ApplicationTemplate/config/config.xml.cfm
r569 r629 8 8 <Setting name="DebugMode" value="true" /> 9 9 <!--The Debug Password to use in order to activate/deactivate debugmode,activated by url actions --> 10 <Setting name="DebugPassword" value=" Coldbox"/>10 <Setting name="DebugPassword" value=""/> 11 11 <!--The fwreinit password to use in order to reinitialize the framework and application.Optional, else leave blank --> 12 12 <Setting name="ReinitPassword" value=""/> … … 22 22 <Setting name="DefaultEvent" value="ehGeneral.dspHello"/> 23 23 <!--Event Handler to run on the start of a request, leave blank if not used. Emulates the Application.cfc onRequestStart method --> 24 <Setting name="RequestStartHandler" value=" "/>24 <Setting name="RequestStartHandler" value="ehMain.onRequestStart"/> 25 25 <!--Event Handler to run at end of all requests, leave blank if not used. Emulates the Application.cfc onRequestEnd method--> 26 <Setting name="RequestEndHandler" value=" "/>26 <Setting name="RequestEndHandler" value="ehMain.onRequestEnd"/> 27 27 <!--Event Handler to run at the start of an application, leave blank if not used. Emulates the Application.cfc onApplicationStart method --> 28 <Setting name="ApplicationStartHandler" value=" "/>28 <Setting name="ApplicationStartHandler" value="ehMain.onAppInit"/> 29 29 <!--The Email address from which all outgoing framework emails will be sent. --> 30 30 <Setting name="OwnerEmail" value="myemail@gmail.com" /> … … 36 36 <Setting name="ExceptionHandler" value="" /> 37 37 <!--What event to fire when an invalid event is detected--> 38 <Setting name="onInvalidEvent" value=" ehGeneral.dspHello" />38 <Setting name="onInvalidEvent" value="" /> 39 39 <!--Full path from the application's root to your custom error page, else leave blank. --> 40 40 <Setting name="CustomErrorTemplate" value="" /> -
coldbox/trunk/ApplicationTemplate/handlers/ehGeneral.cfc
r500 r629 3 3 Date : September 25, 2005 4 4 Description : 5 This is a ColdBox event handler .5 This is a ColdBox event handler for general methods. 6 6 7 7 Please note that the extends needs to point to the eventhandler.cfc … … 10 10 11 11 -----------------------------------------------------------------------> 12 <cfcomponent name="ehGeneral" extends="coldbox.system.eventhandler" >12 <cfcomponent name="ehGeneral" extends="coldbox.system.eventhandler" output="false"> 13 13 14 14 <!--- This init format is mandatory if you are writing init code else is optional, … … 21 21 </cffunction> 22 22 ---> 23 24 <cffunction name="onAppInit" access="public" returntype="void" output="false"> 25 <cfargument name="Event" type="coldbox.system.beans.requestContext"> 26 <!--- ON Application Start Here ---> 27 </cffunction> 28 29 <cffunction name="onRequestStart" access="public" returntype="void" output="false"> 30 <cfargument name="Event" type="coldbox.system.beans.requestContext"> 31 <!--- On Request Start Code Here ---> 32 </cffunction> 33 34 <cffunction name="onRequestEnd" access="public" returntype="void" output="false"> 35 <cfargument name="Event" type="coldbox.system.beans.requestContext"> 36 <!--- ON Request End Here ---> 37 </cffunction> 38 39 <cffunction name="onException" access="public" returntype="void" output="false"> 40 <cfargument name="Event" type="coldbox.system.beans.requestContext"> 41 <!--- ON Exception Here ---> 42 </cffunction> 43 23 44 24 <cffunction name="dspHello" access="public" returntype="void" output="false"> 45 25 <cfargument name="Event" type="coldbox.system.beans.requestContext">
