我試圖在我的Magento網站的主頁上從Ajax調用phtml文件。我基本上創建了app/design/frontend/base/default/template/catalog/product/list.phtml的副本,並對其進行了定製以查看特定類別。如果我在CMS部分添加一個指向此文件的塊,我可以很好地查看它。不過,我想通過Ajax調用這個文件。Magento:通過Ajax調用模板phtml文件
我按照說明創建了一個模塊here,然後我試圖按照this post遵循Magento中的Ajax邏輯。然而,在最後一步它列出:
<module_controller_action>
<block type="module/block" name="root" output="toHtml" template="module/template.phtml"/>
</module_controller_action>
我在哪裏插入呢?另外,對於template="module/template.phtml"
,指的是哪個文件夾?