简体   繁体   English

在cms页面中调用phtml文件不起作用Magento2

[英]Call phtml file in cms page not working Magento2

Hi i am building a module for which i need to call my view file in the cms page which is located at app\\code\\Eecom\\Atc\\view\\frontend\\templates\\atc\\index.phtml 嗨,我正在建立一个模块,我需要在cms页面中调用我的视图文件,该页面位于app\\code\\Eecom\\Atc\\view\\frontend\\templates\\atc\\index.phtml

and in cms i am calling this file as 在cms中,我将此文件称为

    {{block class="Magento\Framework\View\Element\Template" 
template="atc/index.phtml" }}

I have also tried 我也尝试过

{{block class="Magento\Framework\View\Element\Template" template="Eecom_Atc::atc/ndex.phtml"}}

but both are not working Please suggest me where i am doing mistake thanks 但两者都无法正常工作,请告诉我我在哪里做错了,谢谢

Hi the below one is working 嗨,下面的一个正在工作

 {{block class="Magento\Framework\View\Element\Template" template="Eecom_Atc::atc/ndex.phtml"}}

issue was the cache flush. 问题是缓存刷新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM