[ColdBox4] SES Module Entry Point

How do I access the SES Module’s Entry Point?

I use the command event.getCurrentModule() and it returns the folder name and not the entryPoint as specified in ModuleConfig.cfc.

Is there another command?

Here is what I am doing


// Module Entry Point
this.entryPoint = “layout”;
// Model Namespace
this.modelNamespace = “layout”;
// CF Mapping
this.cfmapping = “layout”;

However when I call event.getCurrentModule() it returns nsg-module-layout instead of layout.

Any suggestions how to get the entry point?

From the module you can call getModuleConfig(“name”).entrypoint

Luis Majano
Ortus Solutions, Corp
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox