Class yii\web\HeadersAlreadySentException

Inheritanceyii\web\HeadersAlreadySentException » yii\base\Exception » Exception
Available since version2.0.14
Source Code

HeadersAlreadySentException represents an exception caused by any headers that were already sent before web response was sent.

Method Details

Hide inherited methods

__construct() public method

public void __construct ( $file, $line )

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

getName() public method
public string getName ( )
return string

The user-friendly name of this exception

                public function getName()
    return 'Exception';