Get static block in CMS and Phtml

Get static block in CMS and Static Blocks

{{block type="cms/block" block_id="my-block-id"}} 

Get static block in Phtml file

echo $this->getLayout()->createBlock('cms/block')->setBlockId('my-block-id')->toHtml();

‘my-block-id’ is block identifier

Leave a Reply

Your email address will not be published. Required fields are marked *

32 + = 42