src/BoomCMS/Support/Helpers/URL.php
public static function fromTitle($base, $title)
    {
        $url = static::sanitise($title);

        // If the base URL isn't empty and there's no trailing / then add one.
        if ($base && substr($base, -1) != '/') {
            $base = $base.'/';
        }

        $url = ($base == '/') ? $url : $base.$url;

        return static::makeUnique($url);
    }
public static function fromTitle($base, $title)
    {
        $url = static::sanitise($title);

        // If the base URL isn't empty and there's no trailing / then add one.
        if ($base && substr($base, -1) != '/') {
            $base = $base.'/';
        }

        $url = ($base == '/') ? $url : $base.$url;

        return static::makeUnique($url);
    }
public static function fromTitle ( $ base , $ title ) { $ url = static :: sanitise ( $ title ) ; // If the base URL isn't empty and there's no trailing / then add one. if ( $ base && substr ( $ base , - 1 ) != '/' ) { $ base = $ base . '/' ; } $ url = ( $ base == '/' ) ? $ url : $ base . $ url ; return static :: makeUnique ( $ url ) ; }
Generate a unique URL from a page title.

@param string $base
@param string $title
Generate a unique URL from a page title .