Magento 是否从布局文件夹加载每个 xml 文件?
当在控制器中调用 $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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
客户登录表单的引入是因为该块的 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).