How do I call a static block inside phtml magento

A static block in phtml file of Magento, sometimes we need to do this kind of functionality. For instance whenever you want to add one banner image on right side of callout block.

echo $this->getLayout()->createBlock('cms/block')->setBlockId('banner_image_block_id')->toHtml()

banner_image_block_id is the identifier you have created with static block in magento

Editorial Staff

Editorial Staff at tutsplanet is a dedicated team to write various tutorial articles.