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
|