{"extended":{"hasExtended":true,"docs":"
urlFor([ route, controller, action, key, params, anchor, onlyPath, host, protocol, port ]) <!--- Create the URL for the `logOut` action on the `account` controller, typically resulting in `/account/log-out` --->\n#urlFor(controller="account", action="logOut")#\n\n<!--- Create a URL with an anchor set on it --->\n#urlFor(action="comments", anchor="comment10")#\n\n<!--- Create a URL based on a route called `products`, which expects params for `categorySlug` and `productSlug` --->\n#urlFor(route="product", categorySlug="accessories", productSlug="battery-charger")#"},"hint":"Creates an internal URL based on supplied arguments.","returntype":"","slug":"urlfor","parameters":[{"default":"","required":"No","hint":"Name of a route that you have configured in config/routes.cfm.","name":"route","type":"string"},{"default":"","required":"No","hint":"Name of the controller to include in the URL.","name":"controller","type":"string"},{"default":"","required":"No","hint":"Name of the action to include in the URL.","name":"action","type":"string"},{"default":"","required":"No","hint":"Key(s) to include in the URL.","name":"key","type":"any"},{"default":"","required":"No","hint":"Any additional parameters to be set in the query string (example: wheels=cool&x=y). Please note that CFWheels uses the & and = characters to split the parameters and encode them properly for you (using URLEncodedFormat() internally). However, if you need to pass in & or = as part of the value, then you need to encode them (and only them), example: a=cats%26dogs%3Dtrouble!&b=1.","name":"params","type":"string"},{"default":"","required":"No","hint":"Sets an anchor name to be appended to the path.","name":"anchor","type":"string"},{"default":"true","required":"No","hint":"If true, returns only the relative URL (no protocol, host name or port).","name":"onlyPath","type":"boolean"},{"default":"","required":"No","hint":"Set this to override the current host.","name":"host","type":"string"},{"default":"","required":"No","hint":"Set this to override the current protocol.","name":"protocol","type":"string"},{"default":"0","required":"No","hint":"Set this to override the current port number.","name":"port","type":"numeric"}],"name":"urlFor","availableIn":{},"tags":{"categoryClass":"","sectionClass":"","category":"","section":""}}