public static function reverseRoute($controller, $root = "/") { $index = array_search($controller, static::$routes); if ($index === false) { return null; } return $root . static::$routes[$index]; }