abelbm / magento2-disablefrontend
在Magento 2中禁用前端。
1.1.1
2019-01-03 20:06 UTC
Requires
- php: >=5.5
This package is auto-updated.
Last update: 2024-09-05 03:35:53 UTC
README
禁用Magento 2的前端,仅使用Admin和API路由。
1 - 安装禁用前端
手动安装
为Magento2安装禁用前端
- 下载扩展
- 解压文件
- 在{Magento根目录}/app/code/Abelbm/DisableFrontend创建一个文件夹
- 复制解压文件夹中的内容
使用Composer
composer require abelbm/magento2-disablefrontend
2 - 启用禁用前端
- php bin/magento module:enable Abelbm_DisableFrontend
- php bin/magento setup:upgrade
- php bin/magento cache:flush
- php bin/magento setup:di:compile
3 - 更改前端重定向
商店 > 配置 > 高级 > 管理员 > 禁用前端