|
Yaf_Response_Abstract::setBodySet content to the response Description
public Yaf_Response_Abstractfalsenull Yaf_Response_Abstract::setBody(string
$body, string $key = ?)Set content to the response Parameters
Return ValuesReturns the response object itself on success, or ExamplesExample #1 Yaf_Response_Abstract::setBody example The above example will output something similar to:
Yaf_Response_Http Object
(
[_header:protected] => Array
(
)
[_body:protected] => Array
(
[content] => Hello
[footer] => World
)
[_sendheader:protected] => 1
[_response_code:protected] => 200
)
Hello WorldSee Also
|