Yaf_Response_Abstract::setBody

Yaf_Response_Abstract::setBody

(Yaf >=1.0.0)

Yaf_Response_Abstract::setBodySet content to response

Description

public bool Yaf_Response_Abstract::setBody ( string $content [, string $key ] )

Set content to response

Parameters

body

content string

key

the content key, you can set a content with a key, if you don't specific, then Yaf_Response_Abstra