ColdBox 2.6 Makes ColdCourse Integration Even Easier
Posted on May 17, 2008 at 7:30 PM in ColdBox, ColdFusion
Awhile back I posted about ColdCourse Integration in ColdBox, and how easy it is to use SES (or "pretty") URLs with ColdBox. Today I was taking a peek at the What's New in ColdBox 2.6 documentation, and down at the very bottom I spotted something that seems so trivial, but is so totally cool that I wanted to be sure to highlight it.
In ColdBox 2.5 SES links were really easy to build...
- <a href="#getSetting('htmlBaseURL')#">Home Page</a>
- <a href="#getSetting('sesBaseURL')#/user/login">Login</a>
- <form action="#getSetting('sesBaseURL')#/user/doLogin">
Brand new in ColdBox 2.6 is a buildLink() method, so now they're even simpler...
- <a href="#event.buildLink('')#">Home Page</a>
- <a href="#event.buildLink('user/login')#">Login</a>
- <form action="#event.buildLink('user/doLogin')#">
Just one more simple yet useful feature packed into ColdBox.
"Quack," you mutter, "you are so easily entertained."
You say that like it's a bad thing? ;-)
P.S. Even if you don't use SES URLs with your ColdBox applications, the new buildLink() method still works. The framework auto-detects whether or not you're using SES and builds the links for whichever scenario your application needs. In other words, just write the view file, use #event.buildLink()#, and be done with your views forever.
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]