> Now, what do I have to do to be able to use the same code for 
> development and production? I cannot evaluate the correct 
> path to the root Application.cfc like this:
> 
> <cfcomponent extends="#IIF(cgi.server_name EQ '127.0.0.1', 
> DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#">
> 
> ...because I get this error: "This expression must have a 
> constant value".
> 
> I'm sure I'm not the first to have this problem. Can someone 
> please guide me through this? I really want to use the same 
> code for development and production.

Use the same filesystem structure in development as you do in production.
You can't extend a component with a path that's unknown at compile-time. You
can't use a variable for a package path.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307404
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