API16:JResponse/prependBody
From Joomla! Documentation
Description
Prepend content to the body content
Syntax
prependBody($content)
| Parameter Name | Default Value | Description |
|---|---|---|
| $content | $content |
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
public function prependBody($content) {
array_unshift($GLOBALS['_JRESPONSE']->body, (string) $content);
}
Examples
Code Examples