Lee*_*ish 1 coldfusion components this
在我使用cfc文件中的组件之前,我从未见过这个
<cfset request = CreateObject("component","path/to/component") />
当我将请求设置为上述或:
<cfset request = CreateObject("component","path/to/component").init() /> 要么
<cfset request = CreateObject("component","path/to/component").from_request() />
等等我总是得到一个结构,其中包含一个等效的单项
{cfdumpinited = false}
我以前从未见过这个.该from_request方法重新进行init并init返回this.
当我在我<cfdump this>之前<cfreturn this>获得屏幕上的完整对象输出时.但是当我<cfdump request>得到上面提到的结构时.任何人都知道是什么导致Coldfusion返回这种类型的结构.我可以发布整个cfc,但我不认为这会有所帮助,正如我所说,在返回之前我可以输出this,它是整个对象/组件.
| 归档时间: |
|
| 查看次数: |
119 次 |
| 最近记录: |