Tag: en-US
-
Post Views: 13 1. The configuration code of the I18N application components is as follows: 2. Request the interface in Postman, in headers, accept-language:zh-cn, when the target language is Simplified Chinese, and the category name of the file is: success, it is mapped to the php file @app/messages/zh-cn/success.php, as shown in Figure 1 3. Request the interface in Postman, in…
-
Post Views: 71 1. RESTful web service, it is recommended to implement based on a separate interface application, at this time, it is implemented based on the API application 2. Create a new directory: \api\rests, this directory will be used as the operation method category directory of the RESTful web service 3. Create a new controller class \API\Controllers\UserController.php , and…
-
Post Views: 67 1. Definition and specification: Define: (1) Data layer: Models is used to define automatic verification and automatic completion and data access interfaces related to data; (2) Logical layer: Logics is used to define the business logic related to data; Specification: (1) The model class file in the /common/models directory is only allowed to be generated by the…