I see no reason not to do this, infact i've seen this done in some
commercial opensource software. As long as you dont accidentaly include the
same application.cfm creating an endless loop, it should be fine.

HTH

Kola Oyedeji |Web Developer |ekeda
elthorne gate |64 high street |pinner |middx |ha55qa
t +44(208)429 7333 f +44(208)429 7339 |www.ekeda.co.uk


> -----Original Message-----
> From: Andrew Peterson [mailto:[EMAIL PROTECTED]]
> Sent: 02 January 2002 20:32
> To: CF-Talk
> Subject: Inheriting Application.cfm?
>
>
> Hi,
>
> I haven't heard of anyone ever doing this, but it seems to
> work for me, so I
> was wondering if it was  in some way poor programming or otherwise not
> recommended.
>
> I've got an application.cfm file in my root folder, whose
> properties also
> apply to a subfolder since no application.cfm file is in that
> subfolder.
> However, now I wish to set up a constant which pertains only to the
> subfolder. To do this, I have created another application.cfm
> file specific
> to that subfolder. However, I'd also like all of the
> variables in the root
> folder's application.cfm file to continue to apply. I could
> easily do this
> by copying and pasting the content of the application.cfm
> from the root
> folder verbatim into the subfolder's application.cfm file,
> and then adding
> this extra line for the new constant.
>
> But that sounds like unnecessary work. Instead of inserting a
> copy of my
> root application.cfm folder into my subfolder with this new constant,
> couldn't I just add a cfinclude line in my subfolder's
> application.cfm file
> to include the application.cfm file that is located in the
> root folder?
>
> My subfolder's application file would look like this:
> <cfscript>
> CSOnline = "True";
> </cfscript>
> <cfinclude template="/application.cfm">
>
> Like I said, it seems to work. Any reason not to do this? Thanks!
> Andrew
> 
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to