Monthly Archive: August 2018

在浏览器打开网址: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: 45 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: 11 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: 14 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: 43 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...