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

133

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

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

Comments

Submit
0 Comments