Skip to main content
Participant
February 26, 2011
Question

ColdFusion Builder cfinclude Does Not Work

  • February 26, 2011
  • 1 reply
  • 1754 views

I decided to give CFB a try... and I can't do the simplest thing.  I cannot cfinclude something.  I keep getting "could not find the included template" - it's obvious why, CFB is trying to map the relative path "/" to wwwroot on my local machine when it should be mapping it to "/websites/sitenamet/" - is there a setting to configure this (other than CF administrator mappings)?

This is a gd tragedy.  I can't believe that I've wasted 4 hours of my day and can't write one damn line of code.  I'm sending an invoice to Adobe for $1,000 for my time wasted.

Please help!

This topic has been closed for replies.

1 reply

12Robots
Participating Frequently
February 26, 2011

Ok, first, calm down. It's not Adobe's fault you don't know what you're doing.

Second, what are you trying to do? You say you are using ColdFusion Builder, but you are talking about ColdFusion server error messages?  Are you running the application in the built in browser?  The built in browser is just that, a built in browser. It is not goign to "map" things differently just because you are running it from within CFB.

How about posting the code that is giving you trouble?  I really don't understnad what you mean when you say 'it's obvious why, CFB is trying to map the relative path "/" to wwwroot on my local machine when it should be mapping it to "/websites/sitenamet/"'. CFB is not trying to map anything.

somecfguyAuthor
Participant
February 27, 2011

Thanks for the candor.  Let me clarify further:

This code:

<cfinclude template="/api/createslug.cfm">

Gives me the following error:

(in the FireFox built-in browser running the local set of code)

"Could not find the included template /api/createSlug.cfm"

The reason is:

CFB is trying to load the file from this path:

C:\ColdFusion9\wwwroot\api\createSlug.cfm

Instead of this path:

C:\ColdFusion9\wwwroot\websites\sitename\api\createSlug.cfm

Is there a setting to change where CFB considers the root aka "/" to be?

somecfguyAuthor
Participant
February 27, 2011

After playing around with CFB and learning about all of it's shortcomings including the fact that it doesn't have auto complete tags, I have concluded that Dreamweaver is a far superior product for rapid application development.

Good bye, ColdFusion Builder.  Thanks for nothing.