How To Load Block on Templates in Magento 2 - Magento Source24
In this Post I'm Share with you to How To Load Block on Templates in Magento 2
You can call it like this.
Below code are use to load direct block load on template (phtml) file in magento :
in this class getOrderDeatils() is function define in the Wheelbuilderjson class file
<?php
$blockObj= $block->getLayout()->createBlock('Dww\Quote\Block\Adminhtml\Wheelbuilderjson');
$data=$blockObj->getOrderDeatils();
?>