Packages » Package freeform » Class Location » Method toURL

Method Location::toURL

Declaration:
<? public string toURL(bool $disableRewrite = ) ?>

Declared in:
Location

Description:
Create an URL to access an action with a given set of parameters. This will use the classes specified in the locationRewriter config option of the freeform package to rewrite the URLs of other actions. If there are no rewriters configures, or all of them returned nulls, the default format for URLs will be used. If the $disableRewrite parameter is set to true, then the URL will always be in default format.

Parameters:
  • bool $disableRewrite
    flag to disable the rewriting of the URL

Returns:
string the URL of the action and set of parameters contained in this Location object