(Yaf >=1.0.0)
Yaf_Response_Abstract::prependBody — Prepend to the response body
$body, string $key = ?): Yaf_Response_Abstract|false|nullPrepend to the response body
bodyThe content string.
keythe content key. If not specified, Yaf_Response_Abstract::DEFAULT_BODY will be used.
Returns the response object itself on success, or false on failure.
Örnek 1 Yaf_Response_Abstract::prependBody() example
<?php
$response = new Yaf_Response_Http();
$response->setBody("World")->prependBody("Hello ");
echo $response;
?>Yukarıdaki örnek şuna benzer bir çıktı üretir:
Hello World