|
Yaf_Response_Abstract::setBodySet content to response Beschreibung
public bool Yaf_Response_Abstract::setBody
( string
$content
[, string $key
] )Set content to response Parameter-Liste
Rückgabewerte
BeispieleBeispiel #1 Yaf_Response_Abstract::setBodyexample
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Yaf_Response_Http Object
(
[_header:protected] => Array
(
)
[_body:protected] => Array
(
[content] => Hello
[footer] => World
)
[_sendheader:protected] => 1
[_response_code:protected] => 200
)
Hello World
Siehe auch
|