I am trying to get the same block on two custom phtml files,
abc.phtml here i need selected data from array,
xyz.phtml here i need all data from array, how to achieve this?
My format:
<?php echo $this->getLayout()->createBlock("Amasty\Storelocator\Block\Location")->setTemplate("Amasty_Storelocator::center.phtml")->toHtml(); ?>