thinkcmf执行composer时会自动更新模板文件


在首次执行composer install 或在执行composer update是  会自动更新模板内容,

也就是说 如果你改动了官方的模板内容 ,后续执行了更新操作会 先把本地的模板文件删除,然后拉取线上的模板,自己改动的内容就不存在了。

解决方案:

1 、卸载thinkcmf/cmf-root包

2、在composer.json文件中 将 thinkcmf/cmf-root的值更改为false

"config": {
    "preferred-install": "dist",
    "vendor-dir": "vendor",
    "allow-plugins": {
        "thinkcmf/cmf-root": false
    }
},

3、新建模板文件 二次开发。

 

发布时间 : 2023-03-01,阅读量:1206 , 分类: PHP ThinkPHP
本文链接:https://upwqy.com/details/420.html
ThinkCMF 解决登录时长过短问题 enter your GitHub credentials to access private repos