Jump to main content Jump to doc navigation

modChunk.setContent

Other versions: 2.x (current) — Other languages: EN RU — Found a problem? Please edit this page or report an issue.

modChunk::setContent

Sets the content of this Chunk.

Syntax

API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_modchunk.class.html#%5CmodChunk::setContent()

void setContent ( $content, [ $options = array()])

Example

$chunk->setContent('<h2>Hello!</h2>');

See Also