API15

API15:JResponse/prependBody

From Joomla! Documentation

Revision as of 22:19, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Prepend content to the body content <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Prepend content to the body content

[Edit Descripton]

Template:Description:JResponse/prependBody

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);
}

[Edit See Also] Template:SeeAlso:JResponse/prependBody

Examples

<CodeExamplesForm />