JResponse/appendBody: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Append content to the body content
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]<... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Append content to the body content | Append content to the body content | ||
===Syntax=== | ===Syntax=== | ||
| Line 34: | Line 32: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=appendBody | category=appendBody | ||
category=JResponse | category=JResponse | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:01, 25 March 2017
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