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!
- <a href="#getSetting('htmlBaseURL')#">Home Page</a>
- <a href="#getSetting('sesBaseURL')#/user/login">Login</a>
- <form action="#getSetting('sesBaseURL')#/user/doLogin">
Oh, and in the head of your layout files, add your base tag:
- <base href="#getSetting('htmlBaseURL')#" />
That's it. It really is just that simple!
I <3 ColdBox. :)
Latest Articles
- No recent entries.
Categories
- ColdBox (21) [RSS]
- ColdFusion (92) [RSS]
- Fusebox (3) [RSS]
- General (22) [RSS]
- jQuery (15) [RSS]
- Kalendar (1) [RSS]
- Linux (1) [RSS]
- Mura CMS (1) [RSS]
- Railo (1) [RSS]
- Rants (5) [RSS]
- Transfer (8) [RSS]
- Uni-Form Tag Library (36) [RSS]
There are no comments for this entry.
[Add Comment]