> I have a website with an application.cfm file;
>
> then I add a couple of tags from Allaire's developer's
> exchange each with their own application.cfm.
>
> If I just paste all in to my original I often get errors
> and sometimes the tag will have it's own variables which
> can/will conflict with my original ones.
There's an acronym I've heard quite often:
TANSTAFL
"There ain't no such thing as a free lunch."
The same is true with any free code you get from the developers' exchange.
You'll have to integrate it, and possibly change it, so that it works within
your applications. Most custom tags don't require their own Application.cfm,
though.
> Can I have 2 cfapplications named separately in one application
> tag?
>
> If so how does cold fusion know when to end one cfapplication
> (as it doesn't have an closing tag)
You can place two CFAPPLICATION tags in the same application.cfm, but you
really, REALLY, don't want to do that. That certainly wouldn't be a best
practice - or even an acceptable practice!
> Any help on best practices would be appreciated as I am now
> totally confused.
Unfortunately, for best practices to get you out of trouble here, you'd have
to adhere to them, and the developer who created the other code would also
have to adhere to them. Since that developer may not have, you'll have to
dig into the code and make it work.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists