Thursday 20 December 2012

How to call static block in the magento files ?


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

where
block_id = the id which you given in the admin for the static block

No comments:

Post a Comment