Coldfusion 带有映射can'的CFC;在Railo找不到
我正在尝试使映射正常工作Coldfusion 带有映射can'的CFC;在Railo找不到,coldfusion,railo,cfml,application.cfc,Coldfusion,Railo,Cfml,Application.cfc,我正在尝试使映射正常工作 ... this.mappings = { "/toolbox" = ExpandPath(".") & "toolbox", "/models" = ExpandPath(".") & "controllers/model", "/model" = ExpandPath(".") & "controllers/model" // hack, plural is correct }; setu
...
this.mappings = {
"/toolbox" = ExpandPath(".") & "toolbox",
"/models" = ExpandPath(".") & "controllers/model",
"/model" = ExpandPath(".") & "controllers/model" // hack, plural is correct
};
setupApplication() {
...
// works
application.objCCFRO = new controllers.model.ccfro();
application.objUtil = new controllers.model.utils();
// Does not work
application.objCCFRO = new models.ccfro();
application.objUtil = new models.utils();
...
}
组件定义无效,在中找不到models.ccfro
load(ComponentLoader.java:276):276
在
railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:39):39
在
lailo.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2784):2784
在
railo.runtime.functions.other.CreateObject.doComponent(CreateObject.java:178):178
在
railo.runtime.functions.other.\u CreateComponent.call(\u CreateComponent.java:21):21
在
记分卡38.application\u cfc$cf.udfCall(D:\railo\webapps\www\scorecard38\application.cfc:55):55
在railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
注意:ACF没有此问题您必须确保在更改映射时更改了应用程序名称