SproutCMS

This is the code documentation for the SproutCMS project

function absRoot()

Returns an absolute URL for the web root of this server

Example: 'http://thejosh.info/sprout_test/'

Usage

unknown Sprout::absRoot ( [ string $protocol ] );

Arguments

  1. string $protocol = ''
    Protocol to use. 'http' or 'https'.
       Defaults to server config option, which if not set, uses current request protocol.