我想在内容区的主页上制作一个新闻订阅框,为此我制作了一个CMS页面,其中我已经放入新闻订阅文件中的其他代码也可以调用。如何在cms/content_home.phtml上调用newsletter/subscribe.phtml?
我想这样称呼它:
<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
但它不会显示出来。
为什么?
正在使用的Magento版本1.6 – atif