Answers for "call phtml file in another phtml file magento 2"

0

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

<?php echo $this->getLayout()->createBlock("MagentoFrameworkViewElementTemplate")->setTemplate("Magestore_Webpos::login.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("MagentoFrameworkViewElementTemplate")->setTemplate("Vendor_Module::custom.phtml")->toHtml();?>
Posted by: Guest on August-28-2021

Code answers related to "call phtml file in another phtml file magento 2"

Browse Popular Code Answers by Language