API16

JResponse/appendBody: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:




{{subst:Description:JResponse/appendBody}}
 


===Syntax===
===Syntax===
Line 33: Line 33:




{{subst: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