In these days, I feel like myself to write all of CF coding in CFScript version. Because most of CF Developers said CFScript coding can enhance your projects than normal CFML coding. That's why I want to develop my simple ORM projects with CFScript as testing purpose.
2
3component output="false" {
4THIS.name = "CFScriptORM";
5THIS.applicationTimeout = createTimeSpan(0, 1, 0, 0);
6THIS.clientManagement = false;
7THIS.datasource = "cfartgallery";
8
9THIS.loginStorage = "cookie";
10THIS.sessionManagement = true;
11THIS.sessionTimeout = createTimeSpan(0, 0, 30, 0);
12
13THIS.ormenabled = true;
14THIS.ormsettings = {};
15
16public void function onError(required any Exception, required string EventName) {
17
18 if (ListFindNoCase("onSessionEnd, onApplicationEnd", Arguments.EventName) IS 0)
19 {
20 WriteOutput("<h2>An unexpected error occurred.</h2>");
21 WriteOutput("<p>Please provide the following information to technical support:</p>");
22 WriteOutput("<p>Error Event: #Arguments.EventName#</p>");
23 WriteOutput("<p>Error details: #Arguments.Exception.message#<br>");
24 }
25return;
26}
27}

Android
Top of Page