<?php
$response = new Yaf_Response_Http();
$response->setBody("Hello")->setBody(" World", "footer");
/* using the response in a string context renders all body blocks */
echo $response;
var_dump((string) $response);
?>
The above example will output
something similar to:
Hello World
string(11) "Hello World"