架构设计
-
在 CentOS 7.5 64 位、PHP 7.4 中报错:PHP Core Warning ‘yii/base/ErrorException’ with message ‘Module ‘zip’ already loaded’ 的分析解决
1、在 CentOS 7.5 64 位、PHP 7.4 中报错:PHP Core Warning ‘yii/base/ErrorException’ wit…
-
在 Yii 2.0 的 RESTful APIs 中,跨域资源共享的实现
1、在域名:http://editorweb.wjdev.chinamcloud.cn 中请求接口:http://api.pcs.wjdev.chinamcloud.cn/v1/p…
-
在 PHP 7.4.6 中报错:Trying to access array offset on value of type bool 的修复
1、在 PHP 7.4.6 中报错:Trying to access array offset on value of type bool,如图1 图1 2、查看代码,打印 $re…
-
在 Yii 2.0 的 RESTful APIs 中,view:返回指定资源的详情,HTTP 动词同时支持 GET 与 POST 的实现
1、在 Postman 中 GET 请求指定资源的详情,响应 200,如图1 图1 2、查看路由配置,代码如下 /* 任务管理 */ [ ‘class’ => ‘yii/re…
-
优化 Composer 自动加载,执行命令:composer dumpautoload -o,提示:Deprecation Notice:does not comply with psr-0 autoloading stan ard. It will not autoload anymore in Composer v2.0. 的分析
1、优化 Composer 自动加载,执行命令:composer dumpautoload -o,提示:Deprecation Notice:does not comply wit…
-
执行 composer update 时,提示:Package codeception/base is abandoned, you should avoid using it. No replacement was suggested. 的解决
1、执行 composer update 时,提示:Package codeception/base is abandoned, you should avoid using it…
-
在 Windows 10 64 位、PHP 7.4.6 中,报错:PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick’ (tried: C:/php-7.4.6/ext/imagick 的解决
1、在 Windows 10 64 位、PHP 7.4.6 中,报错:PHP Warning: PHP Startup: Unable to load dynamic librar…
-
在 Yii 2.0 中,控制台命令行,添加参数的实现
1、CmcConsoleUser/actionSync,现有实现,参考:https://www.shuijingwanwq.com/2020/03/02/3964/ ,现在需要添加…
-
在 WorePress 中删除主题
1、在 外观 – 主题,当鼠标放在相应主题上时,仅有启用与实时预览按钮,无 删除 按钮,如图1 图1 2、点击 主题详情 进入,在该主题的右下角存在 删除 按钮。如图2…
-
在 Yii 2.0 中,Redis ActiveRecord 出现主键 ID 重复的情况的分析解决
1、请求接口,响应参数中资源总数量为 30 个。包含 id 等于 37918 的资源是重复的。总计为 2 个。如图1 图1 { "code": 10000, &…