Answers for "how to call one phtml file in another phtml file in magento2"

0

how to call one phtml file in another phtml file in magento2

<?php echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Vendor_Module::custom.phtml")->toHtml();?>
Posted by: Guest on August-28-2021
0

how to call one phtml file in another phtml file in magento2

<?php echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Magestore_Webpos::login.phtml")->toHtml() ?>
Posted by: Guest on August-28-2021

Code answers related to "how to call one phtml file in another phtml file in magento2"

Browse Popular Code Answers by Language