Our Forums are now closed. Please go to our Google Mailing List for help. This site will remain open for historical purposes.
ColdBox Framework Forums Home | Profile | Search | Login | RSS

 pdf Print PDF   Previous Page  Page: 1   Next Page

Thread: routes and matchVariables
Created on: 04/14/09 03:16 AM Replies: 3
anujgakhar
Sergeant

Joined: 04/14/09
Posts: 25
routes and matchVariables
04/14/09 3:16 AM

I have a question about coldbox routes and the matchVariables attribute.

If I use it like this
addRoute(pattern="contactus", handler ="ehPages", action="dspStatic", matchVariables="pagename=contactus")

It doesnt recognize the pagename variable from the request scope.

However, this works.
addRoute(pattern="contactus", handler ="ehPages", action="dspStatic", pagename="contactus")

So is this how its supposed to be or is this a typo in the documentation?

Please advise.
Link | Top | Bottom
anujgakhar
Sergeant

Joined: 04/14/09
Posts: 25
RE: routes and matchVariables
04/14/09 3:20 AM

Just for information, I am using version 2.6.2 FAITH of Coldbox.
Link | Top | Bottom
lmajano
Veteran Master

Joined: 01/29/05
Posts: 1209
RE: routes and matchVariables
04/14/09 10:51 AM

I believe matchVariables where introduced in 2.6.3 not 2.6.2

However, your other approach also would work, it is just undocumented.
Luis Majano
Link | Top | Bottom
anujgakhar
Sergeant

Joined: 04/14/09
Posts: 25
RE: routes and matchVariables
04/15/09 3:27 AM

Thanks Luis for the confirmation.
Link | Top | Bottom

Galleon Forums V1.7.008 was created by Raymond Camden