genaker / helloworld
一个简单的模块,用于测试集成和清除Magneto 2的性能
1.0.1
2021-08-03 00:31 UTC
README
``genaker/module-helloworld``
主要功能
一个简单的模块,用于测试集成和清除Magneto 2的性能
安装
* = 在生产环境中,请使用 --keep-generated
选项
类型 1: 压缩文件
- 将压缩文件解压到
app/code/Genaker
- 通过运行
php bin/magento module:enable Genaker_HelloWorld
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新* - 通过运行
php bin/magento cache:flush
清除缓存
类型 2: Composer
- 将模块添加到composer仓库,例如
- 私有仓库
repo.magento.com
- 公共仓库
packagist.org
- 公共GitHub仓库作为vcs
- 私有仓库
- 通过运行
composer config repositories.repo.magento.com composer https://repo.magento.com/
将composer仓库添加到配置 - 通过运行
composer require genaker/module-helloworld
安装模块 - 通过运行
php bin/magento module:enable Genaker_HelloWorld
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新* - 通过运行
php bin/magento cache:flush
清除缓存
配置
规格
- 控制器
- 前端 > hello/world/index