A Simple CFImage CAPTCHA Plugin for ColdBox

ColdBox , CFML , Boston CFUG 6 Comments »

Last week at the Boston CFUG meeting, we had an "open mic" night where CFUG members went up and gave short presentations in front of the group. I decided to follow up the talk that Luis Majano gave on the ColdBox framework back in July and give an intro on ColdBox plugins. I had some technical problems with my Winblows laptop early on, but Brian Rinaldi graciously let me borrow his laptop for my presentation. It was fun to present and it went well overall. But due to time constraints, I didn't get a chance to go over the code of the custom plugin that I demoed, so I decided to do it here on my blog. (Besides, it's been getting stale around here).

Read more...

Dynamic Component Paths in ColdBox

ColdBox , CFML 3 Comments »

In a previous post, I commented on how I discovered that using slash-delimited component paths worked in the CreateObject() function. In the comments to that post, the general sentiment was that use of this "undocumented feature" should be avoided, as it may lead to unexpected behaviors. I kind of figured that already and make it a point to stick to using dot-delimited paths.What brought this to my attention in the first place was the following example code in the Coldbox Framework Documentation

Read more...

Just Registered for Boston jQuery Camp!

jQuery , Conferences 1 Comment »

I just registered for the jQuery Camp 2008, to be held in Boston, Massachusetts on September 28, which I found out about from Rey Bango's blog. I've started using a sprinkling of jQuery recently, and just from that I'm understanding what the hype is all about. So it's time to get a bit more serious about it. I've recently started working through the Learning jQuery book, so hopefully I'll be a bit less green by conference time. Hopefully, I'll bump into more than a few CF'ers. Who knows --- maybe if you just register, I'll see you there!

Railo, Sava, and Beer in Boston

Boston CFUG , Railo , Sava CMS 2 Comments »

Last night, Gert Franz and Michael Streit from Railo Technologies paid a visit to the Boston CFUG on the last stop off their Railo US Road Show. Unless you've been under a rock these last few months, of course you know that Railo 3.1 will be released as open source later in the year (projected for November, according to Gert). Although Gert had to cut his preso short due to time constraints on the use of our venue, it was a great meeting.

Read more...

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?

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