core/Utils.php
public static function trimPath($path, $base = ROOT_DIR)
    {
        $len = strlen($base);
        if (strlen($path) > $len) {
            if (substr($path, 0, $len) == $base) {
                $path = substr($path, $len);
            }
        }
        return $path;
    }
public static function trimPath($path, $base = ROOT_DIR)
    {
        $len = strlen($base);
        if (strlen($path) > $len) {
            if (substr($path, 0, $len) == $base) {
                $path = substr($path, $len);
            }
        }
        return $path;
    }
修剪掉root路径
@param $path
@param string $base
@return bool|string