Hi!
I’m completely new to Lucee. I’m trying to get my app to work but I’m having some difficulties instantiating objects in the Application.cfc file.
I would like to know if anyone would mind sharing some code examples of how to set up the Application.cfc and particularly how to instantiate objects (using the CreateObject() function) inside that file and assigning those objects to the application scope. We also have a great deal of conditional logic contained in our Application.cfc files to help determine environment variables etc.
Below is a code example of how I’m trying to create an object.
boolean function onApplicationStart(){
set getCerts = CreateObject(“component”, “cfc.get_certs”);
return true;
}
This code gives me the following error:
Missing [;] or [line feed] after expression
Don’t forget to tell us about your stack!
OS: Mac OSX 10.14.6
Java Version: 1.8.0_251
Tomcat Version: 8.5.58
Lucee Version: 5.3.4.80.war