I want to add new phtml file to existed phtml file. It is working fine, but I want to know reference block and class names.
My code in layout file
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<block class="Magento\Framework\View\Element\Template" template="Magento_Test::test.phtml"/>
</body>
In layout file, Here I need to add reference block/container or no need?
Existed code phtml file is
<?php echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Magento_Test::test.phtml")->toHtml();?>