magento 1.9 调取静态块

.phtml 页面调用

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

Content中调用

{{block type="cms/block"  name="cms_test_block"  block_id="order_form" }} 

layout中调用

<reference name="footer">  
    <block type="cms/block" name="order_form" before="-">  
        <action method="setBlockId"><block_id>order_form</block_id></action>  
    </block>      
</reference>
暂无评论

发送评论 编辑评论


				
上一篇
下一篇