Yeah, here's an idea.
In app_globals, I create a var, request.website_dir. The value will be set
to a matching CF Mapping.
Whenever I'm doing an include, I say URL="#request.website_dir#/........",
so that I can tunnel as deep or as shallow as needed in the directory
structure for the app. Every call gets prefixed with that
request.website_dir value.


Alan McCollough
Web Programmer
Allaire Certified ColdFusion Developer
Alaska Native Medical Center

> -----Original Message-----
> From: Johnson, Russ  [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 6: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.
> 
        {redacted}

> 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

Reply via email to