Final Class Yiisoft\PsrEmitter\HeadersHaveBeenSentException
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Exception thrown when headers have already been sent.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getName() | Yiisoft\ |
|
| getSolution() | Yiisoft\ |
Method Details
| public string getName ( ) |
public function getName(): string
{
return 'HTTP headers have been sent.';
}
| public ?string getSolution ( ) |
public function getSolution(): ?string
{
headers_sent($filename, $line);
return <<<SOLUTION
Headers already sent in $filename on line $line.
Emitter can't send headers once the headers block has already been sent.
SOLUTION;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.