private function getActiveRoute($route, $routeIndex)
    {
        if (substr_compare($route, "./", 0, 2) === 0) {
            $route = dirname($routeIndex) . "/" . substr($route, 2);
        }

        return $route;
    }
private function getActiveRoute($route, $routeIndex)
    {
        if (substr_compare($route, "./", 0, 2) === 0) {
            $route = dirname($routeIndex) . "/" . substr($route, 2);
        }

        return $route;
    }
private function getActiveRoute ( $ route , $ routeIndex ) { if ( substr_compare ( $ route , "./" , 0 , 2 ) === 0 ) { $ route = dirname ( $ routeIndex ) . "/" . substr ( $ route , 2 ) ; } return $ route ; }
Support relative routes.

@param string $route      to load.
@param string $routeIndex to use.

@return string with active route.
Support relative routes .