Follow by Email

Wednesday, May 28, 2014

How to call a static block in phtml file in magento

We can use a simple code to call a block in any .phtm file. 
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('top_left_links')->toHtml() ?>

No comments:

Post a Comment