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("Vendor_Module::custom.phtml")->toHtml();?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #phtml #file #phtml #file
ADD COMMENT
Topic
Name
1+1 =