Magento 是否从布局文件夹加载每个 xml 文件?

发布于 2024-12-17 16:38:35 字数 269 浏览 2 评论 0原文

当在控制器中调用 $this->loadLayout() 时,Magento 是否从当前设计包的布局文件夹中获取所有 xml 文件? 我试图弄清楚客户登录表单如何从以下位置提取模板: persistent/customer/form/login.phtml,是不是因为只有一个布局文件:persistent.xml存在?

编辑: 我发现我没有看到 1.6.1.0 中有新模块,而且模型资源名称也有变化

When calling $this->loadLayout() in your controller, does Magento fetches all of the xml files from the layout folders in the current design package?
I am trying to figure out how the customer login form pulls out the template from:
persistent/customer/form/login.phtml, is it because there is only a layout file: persistent.xml present?

EDIT:
I figured it out I didn't see there is a new module in 1.6.1.0 and also there are changes in model resource names

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

濫情▎り 2024-12-24 16:38:35

客户登录表单的引入是因为该块的 XML 标记(在 persist.xml 中)引用了模板或代码块类型。

The customer login form pulls in because of the template or code block type referenced in that block's XML tag (in persistent.xml).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文