首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Railo中找不到有映射的CFC

在Railo中找不到有映射的CFC
EN

Stack Overflow用户
提问于 2013-12-17 21:53:12
回答 1查看 472关注 0票数 4

我在努力让映射工作

代码语言:javascript
复制
 ...
 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();
...
}

无效的组件定义,在railo.runtime.component.ComponentLoader.load(ComponentLoader.java:276):276,railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:39):39,railo.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2784):2784,railo.runtime.functions.other.CreateObject.doComponent(CreateObject.java:178):178,railo.runtime.functions.other._CreateComponent.call(_CreateComponent.java:21):21,scorecard38,找不到models.ccfro。application_cfc$cf.udfCall(D:\railo\webapps\www\Scorecard38\Application.cfc:55):55 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94

注: ACF没有此问题。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-01-03 22:32:29

您必须确保在更改映射时更改应用程序名称。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20645464

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档