Showing posts with label Model-Glue. Show all posts
Showing posts with label Model-Glue. Show all posts

Tuesday, November 28, 2006

ColdFusion Hosting at HostMySite.com

I recently launched a new site that's being hosted on HostMySite.com. It's been quite some time since I've had a site that wasn't hosted in house and have to admit that using HostMySite was painless.

Model-Glue works with their setup out of the box, and they were extremely helpful as we got things setup for the first time. You have to love 24*7 tech support that's actually 'with it'.

My only complaint is that I didn't have access to restore or backup my database, so I had to rely on DTS, although they can do these things for you if you request it. I imagine this is an issue with most shared hosts as SQL Server security surrounding restore and backups isn't easy to hand out to everyone.

Sunday, September 17, 2006

Working with arguments in Model Glue

I ran into an interesting issue with arguments while using the model glue framework. The argumentExists() method and the getArgument() method do not work well together when performing an iff(). For example:

iif(local.arguments.event.argumentExists('showAllCompanies'), de(local.arguments.event.getArgument('showAllCompanies')), de(''))

The same code rewritten in the more archaic fashion works perfectly such as:

if( local.arguments.event.argumentExists('showAllCompanies') ){ local.showAllCompanies = local.arguments.event.getArgument('showAllCompanies'); } else { local.showAllCompanies = ''; }

Very frustrating, but then again, an easy workaround once you know it.