System:Router:encodeForRewriteUrl

From Aspen Documentation

Encodes a string for use in the url. Goes a bit beyond urlencode by also converting ampersands and spaces.

Since 1.0

Arguments

string encodeForRewriteUrl (string $var)

var
The text that needs to be encoded.

Returns

Returns a string.

Examples

Example:

$this->APP->router->encodeForRewriteUrl('Some TEXT for Url&Use')

Returns:

Some_TEXT_for_Url-and-Use