永夜 Blog

下载配置文件:config.inc.php,复制 config.inc.php 至 \phpmyadmin-localhost\config.inc.php,打开网址:http://localhost/phpmyadmin-localhost ,登录时,选择服务器已经存在2个,可以自行选择登录哪个服务器 0

Install phpMyAdmin 4.8 in Windows 10, and upgrade based on Composer to avoid the trouble of subsequent manual installation and upgrade

Post Views: 15 1. Reference URL:https://docs.phpmyadmin.net/zh_CN/latest/setup.html#installing-using-composer 2. Install and run the command based on composer, as shown in Figure 1 3. Enter the phpmyadmin-localhost directory, update phpmyadmin to the latest version, and run the...

POST http://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63 ,请求参数 uuid 为数组格式 0

Based on Yii 2.0, the API of RESTful-style web service service is realized. In the request parameter, only one parameter supports data filling and validation of multiple parameter values (ie array, list input) and validation.

Post Views: 13 1. Posthttp://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63, as shown in Figure 1 Print request parameters: 2. Posthttp://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63, the request parameter UUID is the array format, as shown in Figure 2 Print request parameters: 3. Check \QQ\RESTS\Article\CreateAction.php,...

Post http://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63 ,参数:uuid 不存在于企鹅号的第三方服务平台应用的企鹅媒体用户模型中,响应:数据验证失败:企鹅号ID(UUID)是无效的。,符合预期 0

Based on yiisoft/yii2-app-advanced, the API of RESTful-style web service service is realized. When the request parameter is multi-model, the realization of data filling and validation

Post Views: 15 1. Reference URL:https://www.yiiframework.com/doc/guide/2.0/zh-cn/input-multiple-models, it is suitable for web forms, but the request parameters of the API application generally do not add the form name (especially when the single model is entered),...

在浏览器打开网址:http://api.channel-pub-api.localhost/qq/v1/oauth2/authorize?group_id=015ce30b116ce86058fa6ab4fea4ac63 ,响应 HTML 格式,符合预期 0

In Yii 2, when processing a RESTful API request, the new response format is supported: text/html, and only the HTML format is supported

Post Views: 46 1. Open the URL in the browser: http://api.channel-pub-api.localhost/qq/v1/OA uth2/authorize?group_id=015ce30b116ce86058fa6ab4fea4ac63 , which responds to the XML format, because RESTful APIs support both JSON and XML formats. But HTML format is not supported....

当 本地 的值设置为 简体中文 时,创建文章 时,编辑器未正常显示 0

After yii2 starter kit is switched to the Chinese locale, the solution is not displayed normally in the editor

Post Views: 12 1. When the value of locale is set to english (us), the editor will display normally, but the corresponding language package file /assets/5fbb6f5a/lang/en.js response 404, as shown in Figure 1 2....

打开网址:http://www.channel-pub-api.localhost/backend/site/login ,后端路由符合预期,成功响应 0

Nginx-based single domain name configuration on Yii 2 Advanced Project Template

Post Views: 13 1. There are 3 applications in the directory structure at this stage, namely: Frontend, Backend, and API, and their domain names are configured as :http://www.channel-pub-api.localhost/,http://www.channel-pub-api.localhost/backend,http://www.channel-pub-api.localhost/api 2. Edit the hosts file 3....

打开 Windows PowerShell,执行 init 命令并选择 dev 作为环境,api应用所需环境配置文件自动生成 0

Based on yiisoft/yii2-app-advanced, create a new repository yii2-app-advanced on github, and create a new remote procedure call application (implement hprose 2.0 for PHP’s RPC server), support for creating new RPC directories, configuration and environment, testing, Vagrant, etc.

Post Views: 28 1. Implement the corresponding RESTful-style web service API of the page in the API directory, and then adjust it to the RPC client 2. After all the corresponding APIs of the...

新建 \build\c_files\etc\supervisord.d\yii-task-submit.ini 0

In Docker, Rancher deployment, execute Yii 2 console commands based on the Supervisor timing

Post Views: 15 1. Supervisor is a small system that can manage and monitor various processes in UNIX-like systems. The configuration file of supervisor is a Windows-ini style (Python ConfigParser) file. 2. The program...

passthru() has been disabled for security reasons 0

In Yii 2, the RPC service is implemented based on HProse, and the error is reported: passthru() has been disabled for security reasons

Post Views: 44 1. In the local environment, post in postman , http://api.aims-api.localhost/v1/tasks?group_id=015ce30b116ce86058fa6ab4fea4ac63 , the response is successful 2. In development environment, post in postman , http://wjdev2.chinamcloud.com:8659/v1/tasks?group_id=015ce30b116ce86058fa6ab4fea4ac63 , the response failed, as shown in...