1
0
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:
Awilum
2022-04-09 18:11:09 +03:00
parent 65fadc431f
commit 504b81b74a

View File

@@ -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.