QQ扫一扫联系
在开发示例程序中的,`config.json`中的配置项给了例子如下:
"config": {
"testText": [
[
"text",
"文字参数"
]
],
"testEnable": [
[
"switch",
"功能启用"
]
],
"testSelect": [
[
"select",
"下拉选择"
],
[
"optionType",
"Module\\Demo\\Type\\DemoType"
]
]
}
请问这里是指这些配置项的value 是在这里hard-coded 吗?还是说他们与`module/Demo/Admin/Controller/ConfigController.php`有关联,实际值是在ConfigController中设置的?
PHP版本、系统版本、模块版本等
1
2
3
1
2
3
① config.json 中的配置项,在 系统管理 → 模块管理 → 模块配置 中设置,通常用于模块的“系统级”配置。
② module/Demo/Admin/Controller/ConfigController.php 中的配置是根据系统实际需求任意配置,通常用于业务功能的配置,和 config.json 中的配置无关。
ok. thanks.