Yaf_Response_Abstract::response
PHP function
Edit on GitHub ✎
(Yaf >=1.0.0)
Send the response
Description
Yaf_Response_Abstract::response(): bool|null
Send the response: the headers and all body blocks, in order.
Parameters Parameters
Return Values
Returns true on success, or null on failure.
Examples
Yaf_Response_Abstract::response() example
php
<?php
$response = new Yaf_Response_Http();
$response->setBody("Hello")->setBody(" World", "footer");
$response->response();
?>The above example will output something similar to:
output
Hello WorldSee Also
Yaf_Response_Abstract::setBodyYaf_Response_Abstract::clearBody