My latest web project has just launched - a mobile-optimised version of the successful LoveHoney website, where I've been doing web and ColdFusion work on and off for the last couple of years.
LoveHoney have been selling sex toys and lingerie in the UK and around the world for 6 years - so be warned, the sites may not be safe for work! (So all the more reason to browse on your mobile phone...)
Read more »
Posted on 28 June, 2009, in
iPhone, ColdFusion
Every now and again, I come across something in ColdFusion that really bugs me. This is today’s annoyance.
When using <cfoutput> to loop over a query, the query attribute cannot be a function name. For example, I have a CFC with a method getRoles(), which returns a query.
I would have expected that the following would work:
<cfoutput query="getRoles()">
...
</cfoutput>
…but this throws an error. So I am forced to add extra code to work around it:
<cfset qRoles = getRoles() />
<cfoutput query="qRoles">
...
</cfoutput>
I’m sure there’s a logical reason why this should be the case, and that someone will tell me what it is, but I just find it irritating.
Posted on 25 June, 2009, in
ColdFusion