rahulhedaoo / module-hello
使用 composer 创建测试模块
dev-main
2022-04-05 12:33 UTC
This package is auto-updated.
Last update: 2024-09-05 18:41:26 UTC
README
``rahulhedaoo/module-hello``
主要功能
asd
安装
* = 在生产环境中请使用 --keep-generated 选项
类型 1:压缩文件
- 将压缩文件解压到
app/code/RahulHedaoo - 通过运行
php bin/magento module:enable RahulHedaoo_Hello启用模块 - 通过运行
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 rahulhedaoo/module-hello安装模块 composer - 通过运行
php bin/magento module:enable RahulHedaoo_Hello启用模块 - 通过运行
php bin/magento setup:upgrade应用数据库更新* - 通过运行
php bin/magento cache:flush清除缓存
配置
规格
- 控制器
- 前端 > rahulhedaoo_hello/index/index