This is my experience as well...
if one sets variables as:

<cfset request.cfroot = "/myapp">

*without* also creating a CFAS mapping to the root directory of the
application as "/" (or some other thing like "/myapp"), then statements
like:

<cfinclude template="#request.cfroot#/blocks/dsp_showit.cfm">

kick back such gems as:

"Detail: The logical path you have specified (/myapp/blocks/dsp_showit.cfm)
could not be resolved to an actual filename because you have not specified a
root template directory."

One is then forced to either *make* the mapping or resort to relative
mappings, a la "../myapp/blocks/dsp_showit.cfm"...

I, personally, don't see how it can work otherwise.

my dos centavos,
pts


~~ -----Original Message-----
~~ From: Marc Funaro [mailto:[EMAIL PROTECTED]]
~~ Sent: Saturday, September 16, 2000 9:20 AM
~~ To: [EMAIL PROTECTED]
~~ Subject: RE: Fusebox without Admin access
~~
~~
~~ Please let me know if I have this right or not:
~~
~~ The CFAS Administrator mappings are specifically for CFMODULE
~~ and CFINCLUDE.
~~ They allow you to specify where templates are located by starting at the
~~ "root" of the application, using "/".  Without these mappings,
~~ you must use
~~ relative pathing and perhaps  some twisted variable assignments like
~~ "someroot = "../../../" in order to call template using those tags.
~~
~~ Therefore, even though you have specified "request.cfroot" to by
~~ "/myapp",
~~ this is not the equivalent of mappings.  Without a CFAS Admin
~~ mapping, this
~~ may very well point to the directory named "myapp" UNDER
~~ whatever CFAS Admin
~~ "thinks" is your root.  This may be different depending on how your host
~~ sets up the servers.
~~
~~ Comments and non-derogatories?
~~
~~ Marc
~~
~~
~~ -----Original Message-----
~~ From: Fred T. Sanders [mailto:[EMAIL PROTECTED]]
~~ Sent: Friday, September 15, 2000 10:14 PM
~~ To: [EMAIL PROTECTED]
~~ Subject: Re: Fusebox without Admin access
~~
~~
~~ Chris,
~~
~~ No you don't need access to the development mappings in the CFAS
~~ administrator.  I believe if you look closer you'll see that they were
~~ talking about using variable mapping.
~~
~~ i.e
~~
~~ <cfset request.cfroot = "/myapp">
~~ <cfset request.webroot = "/">
~~ <cfset request.imgroot = "/images/">
~~
~~ or whatever you need them to be.
~~
~~ <cfinclude
~~ template="#request.cfroot#/actions/act_MySuperDuperStudlyActionFile.cfm">
~~
~~ I'm sure you get the idea.  They're there to save typing, and
~~ make migrating
~~ from dev boxes to production boxes a little easier.
~~ Typically they'd go in an app_Server.cfm where each box gets its own
~~ proprietary app_server.cfm file.
~~
~~ Fred T. Sanders
~~ Charlottesville, VA
~~ -------------------------------------------
~~ Managing Programmers is like herding Cats
~~
~~ ----- Original Message -----
~~ From: "Chris Lott" <[EMAIL PROTECTED]>
~~ To: <[EMAIL PROTECTED]>
~~ Sent: Friday, September 15, 2000 8:59 PM
~~ Subject: Fusebox without Admin access
~~
~~
~~ > -----BEGIN PGP SIGNED MESSAGE-----
~~ > Hash: SHA1
~~ >
~~ > Can I use the Fusebox architecture without having access to set
~~ > development mappings in the Cold Fusion administrator? A post at the
~~ > fusebox site implied that I would need to have that ability, though I
~~ > could be interpreting it wrong.
~~ >
~~ > c
~~ > - --
~~ > Chris Lott <[EMAIL PROTECTED]>| IT Manager|p907-474-3494
~~ >
~~ > -----BEGIN PGP SIGNATURE-----
~~ > Version: PGP 6.5.8 for message encryption and authentication: USE PGP!
~~ > Comment: KeyID: 0x51046CFD
~~ >
~~ > iQA/AwUBOcLF6taLYehRBGz9EQKspwCeOjyMHT6pKr45diHSB+26EzlxYqgAniKA
~~ > kxxDpxwf1F0Oa3edvKAmQo9F
~~ > =feK7
~~ > -----END PGP SIGNATURE-----
~~ >
~~ >
~~ >
~~ -----------------------------------------------------------------
~~ ---------
~~ ----
~~ > To Unsubscribe visit
~~ http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/f
usebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to