Can anyone confirm if there are issues with Douglas' solution? - Calvin
-----Original Message----- From: Douglas Knudsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 8:46 AM To: CF-Talk Subject: Re: CFCs and paths...I'm having a couple of problems... I never noticed any issues with type checking when using dynamic paths to my cfcs. using the below gives me no issues I sometimes set an application scoped var application.rootdir and use something like <cfset toolsobj = CreateObject("Component","#Replace(application.AppRoot,"/",".")#.pathtocfcs. inmy.app") /> I usually don't store my cfcs in a mapped CFC directory as this causes me pain keeping track of them in CVS. Doug On Tue, 15 Mar 2005 06:26:07 -0500, Calvin Ward <[EMAIL PROTECTED]> wrote: > I hadn't tried the dynamic paths before... I wonder if this limitation is > documented anywhere? > > - Calvin > > -----Original Message----- > From: Paul Kenney [mailto:[EMAIL PROTECTED] > Sent: Monday, March 14, 2005 4:37 PM > To: CF-Talk > Subject: Re: CFCs and paths...I'm having a couple of problems... > > The issue with dynamic paths is that you can't do any type-checking at > all in the <cffunction>, <cfargument>, and <cfproperty> tags. For me, > this is too important since it saves a lot of time debugging. It also > makes the structure of component files clearer since I am always > having to use it. It may seem like more work, but it pays you back > later. > > On Mon, 14 Mar 2005 16:24:54 -0500, Bosky, Dave <[EMAIL PROTECTED]> > wrote: > > Define in application.cfm file. You only have to look and change in a > single > > location. If at some point the location changes you don't need to "search > > and replace" you know exactly where to look. > > > > Also what's up with little local telco's? I think they rule! > > > > > > -----Original Message----- > > From: Jeff Small [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 14, 2005 4:19 PM > > To: CF-Talk > > Subject: Re: CFCs and paths...I'm having a couple of problems... > > > > > Just create the mapping on both your local and live sites. Use > > > hardcoded fully qualified paths if you can... try to avoid dynamic > > > path names when refering to the names of CFCs. It makes things easier > > > to understand when you look at it later, and if you have to change the > > > names at some point the "search and replace" should be pretty simple. > > > > Yeah, I've got nothing dynamic. So you're saying I should ask my ISP for a > > mapping? Think they'll do that? Is that a normal thing for ISPs to offer? > > This is just a little local telco, and it's a little pro bono site, so I'm > > wondering if asking for a mapping on their end would be a pain, because > > honestly, at this point, I don't care if it's a pain, I just want it to > > work. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198802 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

