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. |
Please login to continue.