In Coldbox 7, is there a way to disable or set the default route ValuePairTranslation to ‘false’ globally? Or do I have to specify it manually in every single route definition? This could get cumbersome in an app with many routes. If there isn’t a global setting, perhaps this would be a handy addition?
Example of how to disable it for a route manually: route( ":slug" ).valuePairTranslation( false ).to( "pages.show" );
Thanks for the suggestion but I loaded cbmailservice in rest-hmvc by replacing the directory from modules to coldbox/system/modules and also set the path
Thanks for sharing this.
I am quite new to Coldbox, having spent most of my time, using FW1, but I’ve been wondering how Coldbox uses routes etc.
This will certainly help.
Thinking outside the box, can be very rewarding.
Yes, I think you have a good understanding of how the value-pair translation works. If you route matches /users/show/ then anything that looks like a path after it, /export/pdf/name, will be value-pair translated as you mentioned in your post: rc.export=pdf, rc.name={empty value}