kirkmadera / magento1-xsds
为 Magento 1 提供的 XSDs,用于启用 IDE 自动补全和结构验证。
dev-master
2016-04-15 23:19 UTC
This package is auto-updated.
Last update: 2024-08-29 03:36:45 UTC
README
本模块为 Magento 1 提供了 XSDs,以启用 IDE 自动补全和结构验证。
安装
使用 composer 将此模块安装到您的 Magento 项目中,然后在每个 config xml 配置文件中启用它。
composer require kirkmadera/magento1-xsds;
支持的配置文件
模块配置 XML
将以下内容添加到根 <config> 节点的 config.xml 文件中
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../code/community/KMadera/Magento1Xsds/etc/schema/config.xsd"
布局 XML
将以下内容添加到根 <config> 节点的 config.xml 文件中
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../code/community/KMadera/Magento1Xsds/etc/schema/layout.xsd"
已知问题
由于 Magento 1 使用自定义节点名称,因此编写 XSDs 相对困难。我尚未找到一种方法来声明其他节点在某个子级别上所有节点的结构,无论其名称如何。这将使 XSDs 能够应用于 Magento 1 中的许多其他配置文件,如 system.xml、adminhtml.xml、widget.xml 等。
请贡献力量!
我希望有一个更完整的 XSDs 列表,但我要么被阻止,要么还没有找到时间去做。