This class can split the request URL simplify routing the request.
It can parse the current request URI and stores the parts of the URL after splitting it to separate the parts divided by the / character.
The class provides several functions to access the URL parts:
- Get the URL parts in an array
- Get the complete URL as a single text string
- Check if the request URL matches a given route name
- Get a URL part by number, or the first part, or the last part or the part before the last
In Portuguese:
Esta classe for desenvolvida para facilitar o trabalho com URL amigável. |