Tag: yiisoft
-
Post Views: 45 1. Since the log message is stored in the log table of mysql, in the production environment, a large amount of data has been accumulated, and the data length of the log table has reached hundreds of gigabytes. Therefore, it is decided to implement the timing deletion of log messages based on the console command line, and…
-
Post Views: 41 1. In Postman, posthttp://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users201 response, the status value is 1 by default 2. In Postman, deletehttp://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users/1, 200 responses 3. In Postman, posthttp://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users,422 response, not as expected, expected to be 201 response, because “username”: “111111” has been deleted 4. Create a new \console\migrations\m180925_054952_add_is_deleted_and_deleted_at_to_user.php. Update field, status, status, 0: disabled; 1: enabled, default: 1. Added field, is_deleted, whether it…
-
Post Views: 29 1. The API can distinguish application/x-www-form-urlencoded and multipart/form-data input formats by default, and view \api\config\main.php, request Configuration of application components 2. POST request in Postman,http://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users, the input format: application/x-www-form-urlencoded, as shown in Figure 1 3. Post request in Postman,http://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users, input format: multipart/form-data, as shown in Figure 2 4. Post request in Postman,http://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users, the input format: application/json, data…
-
Post Views: 49 1. Since the yiisoft/yii2-composer (2.0.7) cannot be downloaded from dist, now try to download from the source code, the process class depends on proc_open , which is not available in php installation, as shown in Figure 1 2. Edit Dockerfile, delete proc_open, proc_close in disable_functions 3. The previous proc_open and proc_close were also disabled and can be…
-
Post Views: 16 1,composer install When prompted: package yiisoft/yii2-codeception is bandoned, you should avoid using it. Use codeception/codeception Instead., as shown in Figure 1 2. Execute the command:composer show -s, only list the current project information, as shown in Figure 2 3. Check the requirements (dev) option and find that codeception/codeception already exists, so you only need to delete yiisoft/yii2-codeception,…