I do something extremely similar in when I program in PHP as the method it
handles relative paths for includes is a nightmare. I find it somewhat
longwinded though because you still need to maintain a current relative
position unless you move to a completely dynamic URL solution using CGI
vars.

!k

-----Original Message-----
From: Ben Nadel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 30, 2006 2:53 PM
To: CF-Talk
Subject: RE: Relative(document) vs site root paths

I am usually straight relative, but I am liking the idea (and thinking
of moving to) a programmatic, fully-qualified root:

<a href="#APPLICATION.Config.GetRootUrl()#blog/entries.htm">...</a>

Then, instead of hard coding the value returned by GetRootUrl(), that
value is "calculated" at application initialization to be something like
"http://www.bennadel.com/";. However, I would never HARD CODE that value
as I agree, why change everything later when some programming will take
care of the trick. 


.......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Kevin Aebig [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 30, 2006 10:53 AM
To: CF-Talk
Subject: RE: Relative(document) vs site root paths

I'm straight relative. I don't like the idea of rebuilding a crashed
server and trying to get all the mappings in place before anything
works.

That decision also has a lot to do with the structure of the
applications here.

!k



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262300
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to