Actions

API16

JResponse/setBody

< 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

Set body content.



Syntax

static setBody($content)
Parameter Name Default Value Description
$content $content

Defined in

libraries/joomla/environment/response.php

Importing

jimport( 'joomla.environment.response' );

Source Body

public static function setBody($content) {
        $GLOBALS['_JRESPONSE']->body = array((string) $content);
}



Examples

Code Examples


Advertisement