magento showConfig/Configviewer showLayout/Layoutviewer

刚接触magento 时,看一些文档有说showConfig/showLayout ,不理解这两个模块时做什么的,github找到相关文件将它们安装(下载覆盖模块的app目录到项目app目录);

浏览器访问 http://127.0.0.1/magento?showConfig=true 神奇的事情发生了,可以看到站点的配置信息;

magento showConfig/Configviewer showLayout/Layoutviewer

猜想这里是用到了事件或钩子之类的,以后用到了在细看

浏览器访问 http://127.0.0.1/magento?showLayout=package|page|handles ,可以看到一些信息,目前不理解这些怎么帮助开发;

安装Layoutviewer 时,怎么都显示不出来,各种清理缓存、移动目录等都不行,最后发现 /etc/modules/***_Layoutviewer.xml 的 active 属性竟然时false;但后台查看此模块时却显示enable,真是坑死人,改为true后就能showLayout了;

Configviewer github:https://github.com/dmelosilva/MagentoTutotial_Configviewer

Layoutviewer github:https://github.com/astorm/LayoutViewer

只需要将模块中app目录直接覆盖到你项目的app目录就行

打赏
暂无评论

请到【后台 - 用户 - 我的个人资料】中填写个人说明。

发表评论