Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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

<?php echo $this->getLayout()->createBlock("MagentoFrameworkViewElementTemplate")->setTemplate("Magestore_Webpos::login.phtml")->toHtml() ?>
Source by meetanshi.com #
 
PREVIOUS NEXT
Tagged: #call #phtml #file #phtml #file
ADD COMMENT
Topic
Name
8+9 =