Suppose you have created a static block from Magento administration panel (CMS -> Static Blocks) and you want to render its content in some phtml file. Above code will load the static block by its identifier “footer_links”, then produces and returns block’s html output.Magento: Render static block in a phtml file
Last modified
<?php
echo $this->getLayout()->createBlock('cms/block')
->setBlockId('footer_links')
->toHtml();
?>
5 min read