web\UrlManager getScriptUrl()

getScriptUrl() public method

Returns the entry script URL that is used by createUrl() to prepend to created URLs.

It defaults to yii\web\Request::$scriptUrl. This is mainly used when $enablePrettyUrl is false or $showScriptName is true.

public string getScriptUrl ( )
return string

The entry script URL that is used by createUrl() to prepend to created URLs.

throws yii\base\InvalidConfigException

if running in console application and $scriptUrl is not configured.

doc_Yii
2016-10-30 17:17:01
Comments
Leave a Comment

Please login to continue.