Search code examples
phpmagentocatalog

Display .phtml page in another .phtml page


I have created a new.phtml page in catalog/product/new.phtml. which contain new/latest products. i have another .phtml page [product_slider.phtml]. i want to add new.phtml into product_slider.phtml is this possibale.?? how to use.. any idea.?


Solution

  • Answer

    After Trying the code i got the solution.

    <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('catalog/product/new.phtml')->toHtml(); ?>