Magento 2 – How to Call Custom Module Phtml File in CMS Page

cms-pagesmagento2phtml

How to call a phtml file in cms page. my phtml file is located under the path
\app\code\Testing\Helloworld\view\frontend\templates\helloworld.phtml.Thank you in advance

Best Answer

{{block class="Magento\Framework\View\Element\Template" template="Testing_Helloworld::helloworld.phtml"}}

you can use Magento\Framework\View\Element\Template block class to call custom phtml files with out define block class.

Related Topic