RequestViewHelpers
final class RequestViewHelpers (View source)
Methods
__construct(ServerRequestInterface $request, UrlGenerator $urlGenerator, FlashBagInterface|null $flash = null, SessionInterface|null $session = null)
old(string $key, mixed $default = '')
mixed
flash(string $key, mixed $default = null)
mixed
string
string
currentUrl(bool $withQuery = true)
string
currentFullUrl(bool $withQuery = true)
string
isUrlActive(string $url, bool $startsWith = false)
bool
isRouteActive(string $route, array $params = [], bool $startsWith = false)
bool
Details
__construct
__construct(ServerRequestInterface $request, UrlGenerator $urlGenerator, FlashBagInterface|null $flash = null, SessionInterface|null $session = null)
No description
old
mixed
old(string $key, mixed $default = '')
No description
flash
mixed
flash(string $key, mixed $default = null)
No description
currentPath
string
currentPath()
No description
currentQuery
string
currentQuery()
No description
currentUrl
string
currentUrl(bool $withQuery = true)
No description
currentFullUrl
string
currentFullUrl(bool $withQuery = true)
No description
isUrlActive
bool
isUrlActive(string $url, bool $startsWith = false)
No description
isRouteActive
bool
isRouteActive(string $route, array $params = [], bool $startsWith = false)
No description