Magento 2 – Add search bar to custom phtml file
Posted on February 4, 2020 by jamie
Layout File: <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
Template File: echo $this->getLayout()->getBlock('top.search')->toHtml();