I would like to call a Magento phtml file to a static block I have a custom theme! How to do it, please?
here
/public_html/vendor/magento/module-catalog-search/view/frontend/templates/advanced/form.phtml
is where the phtml file is located
what should I do to call it ?
/public_html/app/design/frontend/Emthemes/everything/shoppingcenter
Best Answer
You can use
Magento\Framework\View\Element\Template
class to call phtml filesTo call advanced form use
Magento\CatalogSearch\Block\Advanced\Form
block class.