我想在magento2的xml文件中启用或禁用模块?我该怎么办?
禁用模块的最佳方法是使用config.php文件而不是XML。
config.php
XML
您必须将1文件中的值从0更改为app/etc/config.php。
1
0
app/etc/config.php
禁用Magento_Version模块的示例:
Magento_Version
<?php return [ 'modules' => [ ... 'Magento_Version' => 0, ... ] ];