Monthly Archives: March 2008

March 3, 2008
Always add the <cfimport> tag when using cfimport style syntax

Using cfimport is a great way to add custom tag functionality to your applications. One thing you need to do of course is add a <cfimport> tag to every template where you want to use the cfimport syntax. However, a couple of times when I’ve been creating new templates I’ve forgotten this rule and not [...]

March 2, 2008
Converting boolean values to numeric equivalents

Today I had a situation where I wanted to convert a boolean value (true or false) to a numeric equivalent (1 or 0) for insertion into a database table field which had a “tinyint” data type. The value was coming from a form checkbox, so the actual element may or may not exist in the [...]