How to add static blocks inside the phtml file
Posted by navaneeth on Dec 10, 2012 in Magento | No comments yet
We can insert the static blocks inside an phtml file by using the identifier of the static block we created in the admin panel of magento
Here is the code to do so,
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('identifier')->toHtml();?>
In this case identifier must be replaced by the one which you created on the admin
Leave a Reply