API16

JResponse/appendBody: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JResponse/appendBody|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JResponse/appendBody}}
 
 


===Syntax===
===Syntax===
Line 34: Line 32:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JResponse/appendBody|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JResponse/appendBody}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=appendBody
  category=appendBody
  category=JResponse
  category=JResponse
  category=CodeExample
  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