system -> configuration -> advanced
from there enable newsletter module
. and then you can use the above code to call it anywhere.
<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
本文介绍如何在系统配置中启用新闻订阅模块,并提供了一段代码示例来展示如何在任意位置调用该模块。
1万+

被折叠的 条评论
为什么被折叠?



