AdobeStock_455007340

User Defined Functions in Custom Tags

By default, Custom Tags have no visibility into the caller space. This means that User Defined Functions (UDF’s) in your code cannot be invoked from within Custom Tags in your page. The solution? If the UDF’s are in a separate file use to include them right into the Custom Tag. If they are in the caller code use the CALLER prefix to invoke them. (Applies to: ColdFusion 5 or later)

Leave a Reply