modChunk.setContent
Последнее обновление May 23rd, 2019 | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moremodChunk::setContent¶
Устанавливает содержимое этого чанка.
Синтаксис¶
API документация: http://api.modx.com/revolution/2.2/db_core_model_modx_modchunk.class.html#%5CmodChunk::setContent()
void setContent ( $content, [ $options = array()])
Пример¶
$chunk->setContent('<h2>Hello!</h2>');
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn more