1

我想知道当我转到 Magento 安装的 Web 应用程序的前端主页并单击标题上的产品类别时加载了哪些句柄。例如,假设我访问 http://localhost/mymagento,然后单击 Clothing 链接,该链接应该会将我带到 http://localhost/mymagento/clothing.html。在这里,我在 /mymagento/ 之后没有看到 frontName + controllerName + actionName 格式,那么我怎么知道将从这个 HTTP 请求中收集哪些句柄?

谢谢。

4

1 回答 1

1

有一个内部 URL 重写以catalog/category/view查看Mage_Core_Controller_Varien_Front::dispatch()Mage_Core_Model_Url_Rewrite::rewrite()core_url_rewrite表。所以,catalog_category_view是完整的动作名称。

还加载了其他几个句柄。这些可以通过 检索Mage_Core_model_Layout_Update::getHandles()

于 2013-06-18T13:32:36.340 回答