How to call Magento block in phtml template?

后端 未结 5 1118
温柔的废话
温柔的废话 2021-02-04 12:58

i need to display some more links in footer. i created those links in magento admin as static blocks (id = sample_links ).

and then i added following code page.xml file<

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 13:12

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

提交回复
热议问题