ColdCourse Integration in ColdBox 2.5

Posted on December 23, 2007 at 5:00 AM in ColdBox, ColdFusion

ColdBox 2.5 now has native support for Adam Fortuna's ColdCourse project. Man, this stuff is totally awesome! Prior to the last few days of digging into 2.5, I had only had a chance to casually glance at ColdCourse. Thanks to Luis Majano and Russ Johnson for working hard to get ColdCourse implemented.

Now, instead of having a URL like this one...

http://mysite.com/index.cfm?event=user.login

... ColdBox and ColdCourse allow me to use this one...

http://mysite.com/index.cfm/user/login

If you are on a dedicated server (or VPS) and desire to do a mod rewrite or an ASAPI filter, you can shorten that down to:

http://mysite.com/user/login

And the beauty of it all, with ColdBox 2.5 this is all available to you without any additional work trying to get all of your frameworks to load and play nice with each other!

"Yeah, but won't I have to change my links and form actions?"

Yes, you will, but even that is easy!

  1. <a href="#getSetting('htmlBaseURL')#">Home Page</a>
  2. <a href="#getSetting('sesBaseURL')#/user/login">Login</a>
  3. <form action="#getSetting('sesBaseURL')#/user/doLogin">

Oh, and in the head of your layout files, add your base tag:

  1. <base href="#getSetting('htmlBaseURL')#" />

That's it. It really is just that simple!

I <3 ColdBox. :)

Comments
(Comment Moderation is enabled. Your comment will not appear until approved.)
CodeBassRadio

Latest Articles

Eventually something really brilliant and witty will appear right here.

Calendar

April 2024
S M T W T F S
« Mar  
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        

Subscribe

Enter a valid email address.

The Obligatory Wish List