public function appendContent($content, $code = 200)
    {
        if (!empty($content)) {
            $oldContent = $this->getContent();

            if (!empty($oldContent)) {
                if (!is_scalar($content)) {
                    $content = json_encode($content);
                }

                $this->toHTML();
                $content = $oldContent . $content;
            }

            $this->setContent($content, $code);
        }
        return $this;
    }
public function appendContent($content, $code = 200)
    {
        if (!empty($content)) {
            $oldContent = $this->getContent();

            if (!empty($oldContent)) {
                if (!is_scalar($content)) {
                    $content = json_encode($content);
                }

                $this->toHTML();
                $content = $oldContent . $content;
            }

            $this->setContent($content, $code);
        }
        return $this;
    }
public function appendContent ( $ content , $ code = 200 ) { if ( ! empty ( $ content ) ) { $ oldContent = $ this -> getContent ( ) ; if ( ! empty ( $ oldContent ) ) { if ( ! is_scalar ( $ content ) ) { $ content = json_encode ( $ content ) ; } $ this -> toHTML ( ) ; $ content = $ oldContent . $ content ; } $ this -> setContent ( $ content , $ code ) ; } return $ this ; }
Append content to response.

@param string $content
@param int $code

@return $this
Append content to response .