如何在magento的footer.phtml中调用cms静态块?

时间:2015-07-09 12:54:41

标签: magento-1.9

How to call CMS static block in footer.phtml in Magento? kindly help me. for this 

我尝试了以下代码,但没有工作

getLayout()createBlock( 'CMS /块')setBlockId( '页脚')toHtml(); ?>

2 个答案:

答案 0 :(得分:1)

你试过这可能会有所帮助。

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

答案 1 :(得分:0)

像这样调用CMS块:

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