This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

uitlab
uitlab

Hi. How to programmatically append to placeholder in layout from custom component

uitlab
uitlab

Somethink like this ??

echo $this->env->getExtension('CMS')->startBlock('styles');
echo "    HEllo WORLD    ";
echo $this->env->getExtension('CMS')->endBlock(true );

Last updated

uitlab
uitlab

Solved this problem :)

Block::put('placeholder_name');
echo "Hello world";
Block::endPut();

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.