0 追蹤者

類別 yii\web\HeadersAlreadySentException

繼承關係yii\web\HeadersAlreadySentException » yii\base\Exception » Exception
始於版本2.0.14
原始碼 https://github.com/yiisoft/yii2/blob/master/framework/web/HeadersAlreadySentException.php

HeadersAlreadySentException 代表一個例外,導因於在網頁回應送出前,標頭 (headers) 已被送出。

方法詳情

隱藏繼承方法

__construct() 公開方法

public void __construct ( $file, $line )
$file
$line

                public function __construct($file, $line)
{
    $message = YII_DEBUG ? "Headers already sent in {$file} on line {$line}." : 'Headers already sent.';
    parent::__construct($message);
}

            
getName() public method 公開方法
public 公開 string 字串 getName ( )
傳回 字串

此例外的使用者友善名稱

                public function getName()
{
    return 'Exception';
}