The below code shows how to echo the HTML of a block with the id ‘my_block’.
|
1 |
echo $this->getLayout()->createBlock('cms/block')->setBlockId('my_block')->toHtml(); |
Getting a blocks HTML in a template (phtml)
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.