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)
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!