Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Where $this->_resultPageFactory is the object of MagentoFrameworkViewResultPageFactory
- $resultPage = $this->_resultPageFactory->create();
- $html = $resultPage->getLayout()
- ->createBlock("VendorModuleBlockIndex")
- ->setTemplate("Vendor_Module::index.phtml")
- ->toHtml();
- return $html;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement