mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
@@ -48,6 +48,11 @@ class SimpleRouter
|
||||
*/
|
||||
public static function start()
|
||||
{
|
||||
// Stop processing routes if no valid route is found.
|
||||
if(static::request()->getUrl()->getPath() === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo static::router()->routeRequest();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user