Actions

JDocumentHTML/setBuffer

From Joomla! Documentation

Sets the contents of a document buffer. This will generally be the output captured from a <jdoc:include ... /> statement in the template. It will overwrite any previous contents of the buffer.

Syntax

void setBuffer( $content, $type, $name )

where:

Argument Data type Description Default
$content string The content to be put into the buffer.
$type string Renderer type.
$name string Name of the element rendered.

Example

To set the content of the 'module' renderer called 'myname' you would make a call like this:

$doc =& JFactory::getDocument();
$doc->setBuffer( 'This is some content', 'module', 'myname' );

See also