Skip to main content
Inspiring
April 4, 2013
Answered

new web site application

  • April 4, 2013
  • 2 replies
  • 1378 views

I am going to start a new project and I am pretty new to the ColdFusion and would liek to start Application.cfc and want to know what's kind the information need specify for whole applications.

Your help and information is great appreciated,

Regards,

Iccsi

    This topic has been closed for replies.
    Correct answer Aegis_Kleais

    You didn't state what version of ColdFusion you were using, but:

    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-750b.html

    2 replies

    Inspiring
    April 5, 2013

    You want to know the kind of information you need?  That depends on what you are trying to do.

    Aegis_KleaisCorrect answer
    Inspiring
    April 4, 2013
    iccsiAuthor
    Inspiring
    April 4, 2013

    Thanks for the information and the link,

    Is it a good idea to have data source information in the Application.cfc, since it is global to the application or it is a good idea to have data source in the cfm file in the application folder?

    Thanks again for the information,

    Regards,

    Iccsi,

    Inspiring
    April 4, 2013

    I usually store the datasource into the application.cfc's THIS scope.  But be mindful that I don't believe every ColdFusion version supported this as an application variable.

    <cfset THIS.datasource = 'name_of_default_datasource' />

    In CF10, once this has been set, you can actually omit the DATASOURCE attribute of a CFQUERY and ColdFusion will use the THIS.datasource value as the default.