API16

API16:JResponse/appendBody

From Joomla! Documentation

Revision as of 02:01, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Append content to the body content



Syntax

appendBody($content)
Parameter Name Default Value Description
$content $content

Defined in

libraries/joomla/environment/response.php

Importing

jimport( 'joomla.environment.response' );

Source Body

public function appendBody($content) {
        array_push($GLOBALS['_JRESPONSE']->body, (string) $content);
}



Examples

Code Examples