我们有自己的服务器在使用一个应用程序。我们开始使用不同的提供商进行托管,现在我们得到了上述错误。
在相同的页面上,这样做是可行的:
<cfset compTest = createObject("component", "components.search")>
<cfset result = compTest.search(1,10,1,"desc","")>
<cfdump var="#result#">但这个不是
<cfform name="searchResultGridForm">
<cfgrid
name="searchResultGrid"
bindOnLoad="true"
bind="cfc:components.search.search({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{searchedWord@keyup})"
format="html"
selectMode="Row"
selectOnLoad="false"
width="790"
height="290"
colHeaderAlign="Center"
stripeRows="true"
pagesize="10">
<cfgridcolumn name="fileColor" header="Priority" width="50">
<cfgridcolumn name="idFile" header="ID" width="40">
<cfgridcolumn name="firstName" header="First Name" width="80">
<cfgridcolumn name="lastName" header="Last Name" width="80">
<cfgridcolumn name="email" header="Email" width="100">
<cfgridcolumn name="nextImportantDate" header="Next Important Date" width="70">
<cfgridcolumn name="statusName" header="Status" width="100">
<cfgridcolumn name="historyLastInsert" header="Last Note" width="100">
<cfgridcolumn name="fileAssignedTo" header="Assigned to" width="90">
<cfgridcolumn name="edit" header="Actions" width="60" dataAlign="Center">
</cfgrid>
</cfform>我们不知道为什么会这样。您的帮助将不胜感激。
我们使用的路径
我们的应用程序托管在这里:
/home/[mycompany]/public_html/[appname]/我们的组件在这里:
/home/[mycompany]/public_html/[appname]/components我们的Application.cfg看起来像:
<cfapplication name="[name goes here]" sessionManagement="yes" sessionTimeout="#createTimeSpan(0,8,0,0)#">
<cfset APPLICATION.db = "[appname]">
<cfset APPLICATION.website_url = "http://[ourURL].com">
<cfset APPLICATION.template_path = "#application.website_url#/template/">
<cfset APPLICATION.localPath = "/home/[mycompany]/public_html/[appname]/">
<cfset APPLICATION.codeAlgorithm = "[specific stuff goes here]">
<cfset APPLICATION.codeEncoding = "[code encoding]">
<cfset APPLICATION.codeKey = "[specific stuff goes here]">发布于 2014-05-29 12:57:53
components是映射目录吗?根据这个关于“绑定”的说明
在ColdFusion 9(仅ColdFusion 9,此注不适用于ColdFusion 10!)中,组件路径不能使用映射。
componentPath值必须是从web根目录或包含当前页的目录中以点分隔的路径。
https://stackoverflow.com/questions/23933678
复制相似问题