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,
]
doc_Yii
2016-10-30 17:16:56
Comments
Leave a Comment

Please login to continue.