Calling a static block into a phtml file in Magento

Calling a static block into a phtml file in Magento

To call a static block in Magento ,You can use the following code;

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

To create your Static Block you can log into your admin panel than go to CMS->Static Blocks. There create your static Block with a name, then write the name in setBlockId() to call that into phtml file.

DOWNLOAD SOLUTION HERE