Jump to main content Jump to doc navigation

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

Page: (at)CHUNK
Page: (at)CHUNK
Page: modChunk
Page: modChunk.setContent
Page: modChunk.getContent