The less hardcoded your application is, the easier it’ll be to reuse, maintain, and deploy. For example, never specify an actual ODBC datasource name in the DATASOURCE attribute – instead define a variable (perhaps in APPLICATION.CFM) which contains the datasource name, and pass that variable to all tags instead. (Applies to: ColdFusion All)

Leave a Reply