Not finding what you are looking for? Request a recipe!
ColdFusion 9 introduced the ability to set a default datasource for an application.
ColdFusion allows an application to create a typed object from a structure by specifying the __type__ key in the structure.
ColdFusion offers a couple very simple and easy solutions to prevent this from happening. The first is setting the Allowed SQL on the datasource and using the <cfqueryparam> tag in all of your queries!
ColdFusion allows the use of Regular Expressions to do pattern matching against a string with the REFind and REFindNoCase functions. Using the REFindNoCase function will allow an application to determine if a string is a valid email address. The IsValid function can also be used to accomplish this ...
There are two different ways to loop over arrays in ColdFusion. Using an index loop and accessing the elements of the array by the specified index and specifying the array itself and outputting the specific element in the array.
Outputting values from a structure might seem a little difficult at first. Unlike arrays, which are index based, structures are key based. But, as it does with just about everything else, ColdFusion provides a simple solution!
ColdFusion 9's ORM ( Object Relational Mapping ) features provide easy access to the powerful features of Hibernate. One of the first steps in working with ORM is loading data. ColdFusion provides several functions for working with ORM, one of which is the entityLoad() function, which will be used ...
ColdFusion allows an application to throw a custom error using the <cfthrow> tag.
ColdFusion offers several different ways to operate a loop. Loops for queries, indexes, arrays, collections and conditional. To solve the problem of looping until a certain condition is met, a conditional loop will be used.
The method onError() in Application.cfc will allow an application to handle errors that are not handled by individual try/catch blocks.