Community Member Profile
- Profile: /members/1515-Marc.htm
- Comments: 6
- Points: 1
Recent Blog Comments By Marc
-
Ask Ben: Simple Data Caching In ColdFusion
Posted on Apr 20, 2008 at 9:26 AM
...Solved, Just before where I do a call to the function in the cfc I did a cfinvoke and called on the resultvar of that operation. The init() method had not been invoked. I did this because Godaddy is not supporting Createobject() so I had to rewrite parts of the app and obviously di... read more »
-
Ask Ben: Simple Data Caching In ColdFusion
Posted on Apr 20, 2008 at 6:04 AM
Hi Ben, It seems Coldfusion does not implement an init function like I expect it to... Here's what I do. in Application.cfm: <cfset APPLICATION.objects.db = CreateObject('component','components.db').init(dsn_users='users',dsn_guestbook="guestbook",dsn_irama="irama",maxSt... read more »
-
Happy Medium Between Generic Getters / Setters And Property Methods
Posted on Apr 10, 2008 at 10:14 AM
Oops... <cfset t=CreateObject("component","A"> should be <cfset t=CreateObject("component","A").init()> Now the cfdump in the component and the cfdump from the returned struct are identical. Btw If I place this:<cfset THIS.init()> in the component before... read more »
-
Happy Medium Between Generic Getters / Setters And Property Methods
Posted on Apr 10, 2008 at 6:00 AM
Hi Ben, Cool! I toyed a littlek with GetMetaData(THIS): A.cfc : <cfcomponent displayname="testcomponent" extends="C"> <cffunction name="init" access="public" returntype="struct" output="true"> <cfset t=GetMetaData(THIS)> <cfdump... read more »
-
Passing Referer AS ColdFusion CFHttp CGI Value vs HEADER Value?
Posted on Apr 8, 2008 at 7:38 AM
The difference between type="CGI" and type="HEADER" is that the former gets urlencoded by default, the latter not. If I add encoded="false" to type="CGI" the two are identical. To get an overview of CGI variables that you can modify and CGI variables that are not modifyable do this: i... read more »
-
Passing Referer AS ColdFusion CFHttp CGI Value vs HEADER Value?
Posted on Apr 8, 2008 at 5:57 AM
I try to do this with the CGI.REMOTE_ADDR but it doesn't work. If I do this: <cfhttp method="post" url=" http://mytestdomain.com/iptest.cfm " result="result"> <cfhttpparam type="CGI"
read more »



