Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Pascal DAMIANI #1
MX7 - variable
Today, I migrate one webapplication on my new CFM MX7 server. Everything is
ok...Now I want to improve it with the "application.cfc" instead of
"application.cfm"
But I have error about all my variables as undefined: before in "app.cfm" i
stored all my global variable (<cfset wdatasource = "mydata"> as exemple) but
now with "app.cfc" it doesn't work...
Thanx for your responses
Pascal DAMIANI Guest
-
#39634 [NEW]: session variable and normal variable
From: erhanbaris at gmail dot com Operating system: Win Xp SP1 PHP version: 5.2.0 PHP Bug Type: Variables related Bug... -
#39251 [NEW]: variable variable class array property is read only
From: taskfreak at gmail dot com Operating system: mac os PHP version: 5.1.6 PHP Bug Type: Class/Object related Bug... -
#22237 [Com]: PHP crashes when class references property using variable variable
ID: 22237 Comment by: rep at devdomain dot com Reported By: peter at globalvision dot com dot au Status: Closed... -
passing javascript variable into asp variable using vbscript
The subject pretty much sums up what I need to do. Here is what I have so far, but still can't figure out how to get it working: <script... -
Datalist - how (if) to use a sub variable or session variable in the footer?
Hi, sorry to be greedy with all my posts lately, but can you tell I'm doing new things this week? I've just done my first datalist (a simple... -
tzimmerman #2
Re: MX7 - variable
See
[url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
wwhelp.htm?context=ColdFusion_Documentation&file=0 0001123.htm regarding
migrating from application.cfm to application.cfc.
Ted Zimmerman
tzimmerman Guest
-
DStanten #3
Re: MX7 - variable
Try this simple test first. Create an Application.cfc with the following:
<cfcomponent>
<cfset this.name="test">
<cfset yo = "ho">
</cfcomponent>
In the same directory, create a dude.cfm page like this:
<cfoutput> #yo# </cfoutput>
That should work. If so, look to see what is different in your
Application.cfc. Some things to check:
If running on Unix, be sure to capitalize Application.cfc.
Put your "global" variables outside of any cffunction block.
Be sure to include the opening and closing cfcomponent tags.
If you still can't get it to work, post your exact Application.cfc code here.
DStanten Guest



Reply With Quote

