2016-06-12 57 views

回答

0

等/ 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__ 
);