没有命名空间的类 yii yii\base yii\behaviors yii\caching yii\captcha yii\console yii\console\controllers yii\console\widgets yii\data yii\db yii\db\conditions yii\db\cubrid yii\db\cubrid\conditions yii\db\mssql yii\db\mssql\conditions yii\db\mysql yii\db\oci yii\db\oci\conditions yii\db\pgsql yii\db\sqlite yii\db\sqlite\conditions yii\di yii\filters yii\filters\auth yii\grid yii\helpers yii\i18n yii\log yii\mail yii\mutex yii\rbac yii\rest yii\test yii\validators yii\web yii\widgets

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

属性详情

$scheme 公共 属性

The URI scheme to use in the generated URL for redirection

参见 [[yii\helpers\Url::to()]].

public boolean|string $scheme null
$statusCode 公共 属性

The HTTP status code

public integer $statusCode null
$url 公共 属性

The parameter to be used to generate a valid URL for redirection

参见 [[yii\helpers\Url::to()]].

public array|string $url null

方法详情

__construct() 公共 方法

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