Entries Tagged as 'ColdFusion'

CreateObject and Slash-Delimited Paths??

ColdFusion 5 Comments »

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?

The Birth of 'Cold Fusion'

ColdFusion 2 Comments »

I read Joshua Cyr's memory lane blog post. For some reason, I decided to do a Google search on 'DBML' and I found this. How far we've come...

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds