Here is my code:

<cfif cgi.https Is "on">
 <cfset translatedPath = ReplaceNoCase(cgi.path_info, 
'/cart/cart.cfm','','one')>
 <cfset transalatedPath = ReplaceNoCase(translatedPath,'/','.','ALL')>
 <cfset translatedPath = Right(translatedPath, len(translatedPath)-1)>
 <cfif translatedPath Neq "">
  <cfset request.componentDirectory = "#ReplaceNoCase(translatedPath, 
'/','.','all')#.components">
 </cfif>
</cfif>

Is there a simpler/cleaner way of doing this??

Basically I am getting a dynamic component directory path.

Paul Giesenhagen
QuillDesign
417-885-1375
http://www.quilldesign.com





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241873
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to