Russ,
The problem in this code would be the "?fuseaction=Login". Include files
are not HTTP requests. This means that you cannot use URLencoded variables
in the TEMPLATE attribute. The include merely opens the file and includes
it in your document similar to the way you would open a file in Cold Fusion
Studio and then cut and paste it into your original file. You can't pass in
variables then, and you can't in CFINCLUDEs either. :(
One workaround would be to CFSET a variable first in your code and then make
the CFINCLUDE statement, such as:
<cfset fuseAction = "Login">
<cfinclude template="../login/index.cfm">
HOWEVER, since fuseAction is used "specially" by Fusebox, you might screw up
something in your calling module by doing this. You're best bet is probably
to just include the module directly. As for how well this promotes the
Fusebox concept of a Circuit Application though, I am not sure.
<cfinclude template="../login/dsp_loginForm.cfm">
Hope this helps,
Reid Hankins
-----Original Message-----
From: Johnson, Russ [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 7:53 AM
To: Fusebox
Subject: Missing include errors...
Has anyone come across a situation where your application cannot find an
include on 4.5? I have been fighting this for 3 days!! I have a cfinclude
in my dsp_footer.cfm file that calls to another circuit.
<cfif not isDefined("client.userid")>
<cfinclude template="../login/index.cfm?fuseAction=Login"></cfif>
This will display a table on the right side of my page with a login form.
Here's the dilemma. If I use this format, it will not find the include. I
keep getting that dreaded "you cannot use an absolute path". Well, thats
not an absolute path.
However, if I change the link to point directly to the dsp_login.cfm page
instead of the index page, it works. So this tells me that the pathing is
correct but there is something else going on behind the scenes that will not
allow CF to include this file.
Any ideas??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists