magento 调用 newsletter模板 call newsletter/subscribe.phtml anywhere

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(); ?>
 


 

 

 

 

 

你可能感兴趣的:(magento 调用 newsletter模板 call newsletter/subscribe.phtml anywhere)