In Development under a path /test/{application}

In Development under a path
/test/{application}

In Production no path
/{application}

Of course when you move to production there are a lot of issues the current one is…

Application Execution ExceptionError Type: MissingInclude : [N/A]

Error Messages: Could not find the included template //views/

How can we fix this?

Thanks

In development you would use the AppMapping, where production you don’t.

But to be honest, you really should mimic your production as much as possible.

I hear you but I am trying to get them to do that but I cannot so far so I am having to work around this issue.

In Handler

//var oSecurity = new securityService(); // does not work.
//var oSecurity = new awng.model.security.securityService(); // does not work.
var oSecurity = populateModel(“securityService”); // works

in WireBox

map(“security”).to("#appMapwithDots#model.security.security");
map(“securityService”).to("#appMapwithDots#model.security.securityService");

Is this the best practice way to do this? I am new to ColdBox and I seem to get stuff to work lately but question if I am doing it correctly.

In you Application.cfc then you should set up per-application
mappings. They are awesome and not ColdBox specific.

In my Application.cfc I have:

// --- COLDBOX STATIC PROPERTY, DO NOT CHANGE UNLESS THIS IS NOT THE
ROOT OF YOUR COLDBOX APP --- //
    COLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePath());
    // --- The web server mapping to this application. Used for remote
purposes or static purposes --- //
    COLDBOX_APP_MAPPING = "";
    // --- COLDBOX PROPERTIES --- //
    COLDBOX_CONFIG_FILE = "";
    // --- COLDBOX APPLICATION KEY OVERRIDE --- //
    COLDBOX_APP_KEY = "";

    // --- MAPPINGS --- //
    this.mappings["/model"] = COLDBOX_APP_ROOT_PATH & "model";