API15:JResponse/prependBody
From Joomla! Documentation
Description
Prepend content to the body content
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
prependBody($content)
| Parameter Name | Default Value | Description |
|---|---|---|
| $content | $content |
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function prependBody($content) {
array_unshift($GLOBALS['_JRESPONSE']->body, (string) $content);
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples