Showing posts with label Magento get a static block as html in a phtml file. Show all posts
Showing posts with label Magento get a static block as html in a phtml file. Show all posts

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() ?>