Magento Certified Developer GuideCategory: 3.2 BlocksIs it possible to create an instance of the block and render it on the page without using the Magento layout?
Manish Prakash Staff asked 5 years ago

Yes it possible to do this

$block = $this->getLayout()->createBlock('core/text');
$block->setText('Test Test');
echo $block->toHtml();