modChunk.setContent

Skip to end of metadata
Go to start of metadata


modChunk::setContent

Sets the content of this Chunk.

Syntax

API Doc: http://api.modxcms.com/modx/modChunk.html#

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

Example

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

See Also

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

Labels

chunk chunk Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.