base\Theme getUrl()

getUrl() public method Converts a relative URL into an absolute URL using $baseUrl. public string getUrl ( $url )$url string The relative URL to be converted. return string The absolute URL throws yii\base\InvalidConfigException if $baseUrl is not set

base\Theme setBasePath()

setBasePath() public method See also $pathMap. public void setBasePath ( $path )$path string The root path or path alias of this theme. All resources of this theme are located under this directory.

base\UnknownClassException getName()

getName() public method public string getName ( )return string The user-friendly name of this exception

base\Theme setBaseUrl()

setBaseUrl() public method public void setBaseUrl ( $url )$url string The base URL or path alias for this theme. All resources of this theme are considered to be under this base URL.

base\Theme $pathMap

$pathMap public property The mapping between view directories and their corresponding themed versions. This property is used by applyTo() when a view is trying to apply the theme. Path aliases can be used when specifying directories. If this property is empty or not set, a mapping yii\base\Application::$basePath to $basePath will be used. public array $pathMap = null

base\Theme getBaseUrl()

getBaseUrl() public method public string getBaseUrl ( )return string The base URL (without ending slash) for this theme. All resources of this theme are considered to be under this base URL.

base\Theme getBasePath()

getBasePath() public method See also $pathMap. public string getBasePath ( )return string The root path of this theme. All resources of this theme are located under this directory.

base\Theme applyTo()

applyTo() public method Converts a file to a themed file if possible. If there is no corresponding themed file, the original file will be returned. public string applyTo ( $path )$path string The file to be themed return string The themed file, or the original file if the themed version is not available. throws yii\base\InvalidConfigException if $basePath is not set

base\Theme getPath()

getPath() public method Converts a relative file path into an absolute one using $basePath. public string getPath ( $path )$path string The relative file path to be converted. return string The absolute file path throws yii\base\InvalidConfigException if $baseUrl is not set

base\Theme $baseUrl

$baseUrl public property The base URL (without ending slash) for this theme. All resources of this theme are considered to be under this base URL. public string getBaseUrl ( )public void setBaseUrl ( $url )