Class yii\web\UrlNormalizerRedirectException
继承 | yii\web\UrlNormalizerRedirectException » yii\base\Exception » Exception |
---|---|
可用版本自 | 2.0.10 |
源码 | https://github.com/yiichina/yii2/blob/api/framework/web/UrlNormalizerRedirectException.php |
UrlNormalizerRedirectException represents an information for redirection which should be performed during the URL normalization.
公共属性
属性 | 类型 | 描述 | 被定义在 |
---|---|---|---|
$scheme | boolean|string | The URI scheme to use in the generated URL for redirection | yii\web\UrlNormalizerRedirectException |
$statusCode | integer | The HTTP status code | yii\web\UrlNormalizerRedirectException |
$url | array|string | The parameter to be used to generate a valid URL for redirection | yii\web\UrlNormalizerRedirectException |
属性详情
The URI scheme to use in the generated URL for redirection
参见 [[yii\helpers\Url::to()]].
The HTTP status code
The parameter to be used to generate a valid URL for redirection
参见 [[yii\helpers\Url::to()]].
方法详情
public void __construct($url, $statusCode = 302, $scheme = false, $message = null, $code = 0, Exception $previous = null) | ||
$url | array|string | The parameter to be used to generate a valid URL for redirection. This will be used as first parameter for yii\helpers\Url::to() |
$statusCode | integer | HTTP status code used for redirection |
$scheme | boolean|string | The URI scheme to use in the generated URL for redirection. This will be used as second parameter for yii\helpers\Url::to() |
$message | string | The error message |
$code | integer | The error code |
$previous | Exception | The previous exception used for the exception chaining |