ColdBox 2.6 Makes ColdCourse Integration Even Easier

Posted on May 17, 2008 at 7:30 PM in ColdFusion, ColdBox

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...

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

Brand new in ColdBox 2.6 is a buildLink() method, so now they're even simpler...

  1. <a href="#event.buildLink('')#">Home Page</a>
  2. <a href="#event.buildLink('user/login')#">Login</a>
  3. <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.

Comments

Latest Articles

Eventually something really brilliant and witty will appear right here.

Calendar

July 2008
S M T W T F S
« Jun   Aug »
    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 31    

Subscribe

Enter a valid email address.

As Taught by Ray