mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 05:36:54 +02:00
feat(helpers): add getUriString
helper function
This commit is contained in:
@@ -192,6 +192,18 @@ if (! function_exists('getAbsoluteUrl')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('getUriString')) {
|
||||
/**
|
||||
* Get uri string.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function getUriString(): string
|
||||
{
|
||||
return $_SERVER['REQUEST_URI'];
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('redirect')) {
|
||||
/**
|
||||
* Redirect.
|
||||
|
Reference in New Issue
Block a user