Wednesday, 11 December 2013

How to call static block in .phtml file in Magento


How to call  static block in .phtml file in Magento

Just write below code in any phtml file and give static block identifier.

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('yourblockname')->toHtml() ?>

No comments: