web\UrlManager getBaseUrl()

getBaseUrl() public method Returns the base URL that is used by createUrl() to prepend to created URLs. It defaults to yii\web\Request::$baseUrl. This is mainly used when $enablePrettyUrl is true and $showScriptName is false. public string getBaseUrl ( )return string The base URL that is used by createUrl() to prepend to created URLs. throws yii\base\InvalidConfigException if running in console application and $baseUrl is not configured.

web\UrlManager buildRules()

buildRules() protected method Builds URL rule objects from the given rule declarations. protected yii\web\UrlRuleInterface[] buildRules ( $rules )$rules array The rule declarations. Each array element represents a single rule declaration. Please refer to $rules for the acceptable rule formats. return yii\web\UrlRuleInterface[] The rule objects built from the given rule declarations throws yii\base\InvalidConfigException if a rule declaration is invalid

web\UrlManager addRules()

addRules() public method Adds additional URL rules. This method will call buildRules() to parse the given rule declarations and then append or insert them to the existing $rules. Note that if $enablePrettyUrl is false, this method will do nothing. public void addRules ( $rules, $append = true )$rules array The new rules to be added. Each array element represents a single rule declaration. Please refer to $rules for the acceptable rule format. $append boolean Whether to add the new rule

web\UrlManager $scriptUrl

$scriptUrl public property The entry script URL that is used by createUrl() to prepend to created URLs. public string getScriptUrl ( )public void setScriptUrl ( $value )

web\UrlManager $showScriptName

$showScriptName public property Whether to show entry script name in the constructed URL. Defaults to true. This property is used only if $enablePrettyUrl is true. public boolean $showScriptName = true

web\UrlManager $suffix

$suffix public property The URL suffix used when $enablePrettyUrl is true. For example, ".html" can be used so that the URL looks like pointing to a static HTML page. This property is used only if $enablePrettyUrl is true. public string $suffix = null

web\UrlManager $ruleConfig

$ruleConfig public property The default configuration of URL rules. Individual rule configurations specified via $rules will take precedence when the same property of the rule is configured. public array $ruleConfig = ['class' => 'yii\web\UrlRule']

web\UrlManager $routeParam

$routeParam public property The GET parameter name for route. This property is used only if $enablePrettyUrl is false. public string $routeParam = 'r'

web\UrlManager $rules

$rules public property The rules for creating and parsing URLs when $enablePrettyUrl is true. This property is used only if $enablePrettyUrl is true. Each element in the array is the configuration array for creating a single URL rule. The configuration will be merged with $ruleConfig first before it is used for creating the rule object. A special shortcut format can be used if a rule only specifies pattern and route: 'pattern' => 'route'. That is, instead of using a configuration array,

web\UrlManager $normalizer

$normalizer public property (available since version 2.0.10) The configuration for yii\web\UrlNormalizer used by this UrlManager. The default value is false, which means normalization will be skipped. If you wish to enable URL normalization, you should configure this property manually. For example: [ 'class' => 'yii\web\UrlNormalizer', 'collapseSlashes' => true, 'normalizeTrailingSlash' => true, ] public yii\web\UrlNormalizer|array|string|false $normalizer = false