Allright, so I've always known that to instantiate a component using the createObject function, you have to provide the dot-delimited path of the component. Like so:
Today, I was looking through the ColdBox framework documentation and I came upon this line of code:
I thought that this couldn't be right because the getSetting("AppMapping") gives you the slash-delimited path from the root of your site to your app. So I tested out the code myself expecting to get an error and guess what -- it worked!
So then I thought I'd try just hard-coding the slash-path that is returned by getSetting("AppMapping"):
It still worked. Even though now the path was a combination of slashes and dots. So I went ahead and just hardcoded all slashes.
You guessed it -- works fine!
So it seems like using dots, slashes, or a combination of the two works. Is anyone else surprised by this besides me?
7-25-2008
7-22-2008
6-29-2008
5-20-2008
5-14-2008