aneesahmadweb@gmail.com     03040836207

    <?php echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Magento_Theme::test.phtml")->toHtml(); ?>
    

    <?php $this->getLayout()->->createBlock(“\Magento\Catalog\Block\Product\View”)->setTemplate(“Magento_Catalog::product/social.phtml”)->toHtml();?>

    Above is block
    \Magento\Catalog\Block\Product\View

    We can use the methods of above block phtml page.

    About Author

    You may also like

    No Comment

    You can post first response comment.

    Leave A Comment

    Please enter your name. Please enter an valid email address. Please enter a message.