I am currently creating a pluggable website, but is there a way to see if a certain route has been made ? Like this :
How can I verify a route ? $f3->exists('something'); maybe ?
The ROUTES
variable contains the list of defined routes indexed by URI.
So to check if a URI has been used, just check if it exists as a key of ROUTES
:
if (array_key_exists('/',$f3->ROUTES)) {
// already used
} else {
// not used
}