Hello Adam, and welcome to ColdBox Sorry for the delay in your post, the Google Group requires moderation for the first post.
If you’re not planning on using proxies for stuff like Flex or Ajax, then you can largely ignore the app mapping setting. Back in the day, the onus was on the developer to set that if the app wasn’t in the web root. Nowadays, the framework automatically detects the directory it’s in when it boots up. The setting still exists in application.cfc but is only used for bootstrapping the application if the first request to it is not in it’s root folder. Regarding the slashes or dots-- either one will work. ColdBox/ColdFusion is smart enough to figure it out.
Basically, all you should need to do is have CF resolve “/coldbox” to the folder that contains the framework. This can be achieved by either placing the “coldbox” folder in the web root with that name or creating a mapping (server, or app-level doesn’t matter) that maps “/coldbox” to whatever folder contains the “system” folder. The mapping you described looks correct. The getting started docs do suggest simply dropping it in the web root because it’s the simplest way to get up and running. There’s also little someone can do it they try and hit the framework files directly. They’re pretty much all CFCs and have no remote methods. That being said, I think the majority of people leave the CB folder outside the web root and just use a mapping.
The difference between the regular application.cfc and the no inheritance one is just a choice we give developers based on what they want to do. I think most people use the application.cfc that inherits from a core coldbox file just because it’s the default and it’s the cleanest way to get running. The no inheritance version simply creates an instance of the framework (instead of extending it) to boot strap and passes the initial settings in.
So, I’m unclear from your E-mail if you are actually getting an error message, or were you just at the question-asking stage. Have you loaded the root of the sample app in your browser yet and do you see an error message? It’s pretty hard to screw up the sample apps As long as /coldbox resolves and you hit the code it should work.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com