Actions

API16

JResponse/prependBody

< API16:JResponse

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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


Advertisement