簡體   English   中英

在cms頁面中調用phtml文件不起作用Magento2

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

嗨,我正在建立一個模塊,我需要在cms頁面中調用我的視圖文件,該頁面位於app\\code\\Eecom\\Atc\\view\\frontend\\templates\\atc\\index.phtml

在cms中,我將此文件稱為

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

我也嘗試過

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

但兩者都無法正常工作,請告訴我我在哪里做錯了,謝謝

嗨,下面的一個正在工作

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

問題是緩存刷新。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM