- ⌂ router
- Methods
- Static Methods
router::route_request()
Interprets the request to find a matching controller to delegate further processing. If the router's exit option is TRUE or not set, show_404() will be called if no matching controller is found.
Prototype
boolean route_request()
Return
If the router's exit option is TRUE (default), route_request() will exit after the request is handled, including after displaying a 404 or similar page on error. If the exit option is FALSE, route_request() will return TRUE if the request was successfully routed and handled, otherwise FALSE.
Example
$router = new \io_comand_mvc\router();
$router->route_request();