如何在magento2的xml文件中启用或禁用模块

问题描述 投票:0回答:1

我想在magento2的xml文件中启用或禁用模块?我该怎么办?

magento magento2 magento-2.0 magento2.2
1个回答
0
投票

禁用模块的最佳方法是使用config.php文件而不是XML

您必须将1文件中的值从0更改为app/etc/config.php

禁用Magento_Version模块的示例:

<?php
return [
    'modules' => [
        ...
        'Magento_Version' => 0,
        ...
    ]
];
© www.soinside.com 2019 - 2024. All rights reserved.