want to call one phtml file in another phtml file using anchor tag

前端 未结 6 817
迷失自我
迷失自我 2021-02-06 16:47

I\'m using Magento.

I want display and call one phtml file as a link in another phtml file…

I have the new.phtml file on t

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-06 17:16

    you call newproductpage.phtml in any phtml file using below code

    getLayout()->createBlock('core/template')->setTemplate('custom/newproductpage.phtml')->toHtml(); ?>
    

提交回复
热议问题