-3
有人請告訴我如何在config標籤下寫下面的代碼。magento 2注意:未定義索引:模塊
<modules>
<Tagalys_MerchandisingPage>
<version>0.1.0</version>
</Tagalys_MerchandisingPage>
</modules>
有人請告訴我如何在config標籤下寫下面的代碼。magento 2注意:未定義索引:模塊
<modules>
<Tagalys_MerchandisingPage>
<version>0.1.0</version>
</Tagalys_MerchandisingPage>
</modules>
等/ module.xml可以被定義爲下面
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Tagalys_MerchandisingPage" setup_version="0.1.0">
</module>
</config>
和爲registration.php是如下:
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Tagalys_MerchandisingPage',
__DIR__
);