Calling a static block in phtml template file

July 15, 2010 | In: Magento, web development

First create a static block from admin >> CMS >> static blocks
and write this code in your phtml file :

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