Last active
December 18, 2015 23:59
-
-
Save tonyjunkes/5864989 to your computer and use it in GitHub Desktop.
Example pseudo code showing the use of FW/1 URL routes in the Application.cfc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component extends="org.corfield.framework" | |
output="false" | |
{ | |
/* | |
...Some code... | |
*/ | |
VARIABLES.framework = { | |
routes = [ | |
{ "/section/:value" = "/section/item/parameter/:value" } //Example - "/blog/:post" = "/blog/show/post/:post" | |
] | |
//Other framework vars would also be set here. | |
}; | |
/* | |
...Some more code... | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment