Skip to main content
August 26, 2009
Question

Application.cfc migration problems (Problems with Functions present in Application.cfm)

  • August 26, 2009
  • 1 reply
  • 527 views

Hi All,

I am migrating from application.cfm to applicaton.cfc and have following issues.


In my application.cfm I have some statements like :

    <CFSET loadAppCFC("comUDF", "comUDF", Application.ini.debug.ReloadObjects)>

The loadAppCFC method is defined within the Application.cfm itself. There are few other functions which are defined in Application.cfm and are used in Application.cfm (as above example.)

Noe the comUDF is again a cfc which has many user defined functions which are required on every page.

The other methods defined directly in Application.cfm are also required to be loaded for each page. While migrating to application.cfc I took all the functions from Application.cfm and put it in one file. Then I inluded the following event.

<cffunction name="onRequest">   
<cfargument name="targetPage" type="String" required=true/>   
<cfinclude template="all_udf.cfm">
<cfinclude template="#arguments.targetPage#">
</cffunction>

But Still I get error as "Variable COMUDF is undefined.". Not sure what's happening. Please help.

Thanks!

Sanjeev Singla

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 26, 2009

    Does your error message tell you the file and line number that had the problem?