Works similarly to Router::url(), but since parsed URL's contain additional
'pass' and 'named' as well as 'url.url' keys. Those keys need to be specially
handled in order to reverse a params array into a string URL.
This will strip out 'autoRender', 'bare', 'requested', and 'return' param names as those
are used for CakePHP internals and should not normally be part of an output URL.
public static reverse ( CakeRequest | array $params, boolean $full = false ) : string | ||
$params | CakeRequest | array | The params array or CakeRequest object that needs to be reversed. |
$full | boolean | Set to true to include the full URL including the protocol when reversing the URL. |
return | string | The string that is the reversed result of the array |