is_current_url — Check if the given URL matches the current request URL.

Navigation-related functions

Summary

is_current_url($url)

Check if the given URL matches the current request URL.

Instantiates view helpers directly because a view may not be registered.

Parameters:
  • $url (string) –
Returns:

bool

Usage

Examples

See Also