永夜 Blog

将PHP代码嗅探器配置为PhpStorm检查,File | Settings → Editor → Inspections → PHP → PHP Code Sniffer validation 0

Set the PHP code sniffer to Code Sniffer in Windows 10 64, PHPStorm to verify that your code complies with Yii 2 Web Framework Coding Standard (Yii 2 Web) framework coding standard)

Post Views: 11 1. Reference URL:https://github.com/yiisoft/yii2-coding-standards, as shown in Figure 1 2. Clone the yiisoft/yii2-coding-standards warehouse, as shown in Figure 2 3. Enter the E:\wwwroot\yii2-coding-standards directory, and execute the installation, as shown in Figure...

在浏览器中复制响应的数据存储至txt文档中,然后在 Windwos PoserShell 中查看,发现确定是存在 bom 头的 0

Under Windows 10 64 and Yii 2, the RESTful interface responds to the JSON format, and the CakePHP is used as the HTTP client, and the response data is forwarded to the browser again, and the browser side cannot resolve the solution.

Post Views: 14 1. Preliminary suspicion is a problem caused by the BOM header, save as the code in EditPlus: UTF-8 + BOM, as shown in Figure 1 2. Execute git commit, the difference:...

基于 Yii 2 的 HTTP 客户端扩展,请求https,报错:"Curl error: #60 - SSL certificate problem: unable to get local issuer certificate" 0

Http client extension based on Yii 2 under Windows 10 64 bit, requesting HTTPS, error: “CURL ERROR: #60 – SSL Certificate Problem: Unablem: Unable To get local issuer certificate”

Post Views: 42 1. HTTP client extension based on Yii 2, request https, and report an error: “curl error: #60 – SSL Certificate Problem: Unable to get local Issuer certificate”, as shown in Figure...

在 Rancher 中执行升级,报错:sed: -e expression #1, char 36: unknowd option to 's' 0

Execute the upgrade in Rancher, and report an error: sed: -e expression #1, char 36: unknownd option toSThe solution of

Post Views: 12 1. The image is successfully built in Jenkins, as shown in Figure 1 2. Execute the upgrade in Rancher and report an error: sed: -e expression #1, char 36: unknownd option...

查看Redis,包含Redis cache、Redis 活动记录等数据 0

Implement deletion cache of RESTful applications in Yii 2 Starter Kit (get cache list (based on cache component ID), delete cache (based on cache component ID + cache key), clear the cache, that is, delete all data in a cache component ID)

Post Views: 13 1. Edit the cached controller class, \API\Controllers\CacheController.php 2. Create the data layer of the cached resource class (the corresponding model language package file), \common\models\redis\cache.php 3. Create the logical layer of the...

GET 请求:http://www.cmcp-api.localhost/v1/cache-components?tenantid=default&api_gateway_user_id=1 ,响应成功 0

Implement a list of fetch cache components for RESTful applications in Yii 2 Starter Kit

Post Views: 15 1. Create the controller class of the cache component, \API\Controllers\CacheComponentController.php 2. Create the data layer of the resource class of the cache component (the corresponding model language package file), \common\models\redis\cachecomponent.php 3....