没有回复
涉水轻舟
涉水轻舟 头像
Offline
Joined: 01-20
Magento Phtml文件中直接调用block方法

Magento Phtml文件中直接调用block方法:
1、在后台添加block: newsletter_link_text

2、在需要添加的phtml文件中调用:


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

为了使自己对生活发生兴趣,我一直在努力……