Author: 永夜
-
Post Views: 17 1. In phpstorm, the prompt: the base class referenced by the subclass\common\models\conventionparticipantsharerecipientconstant in the constant. as shown in Figure 1 2. The code is implemented as follows common/models/conventionparticipantsharerecipient.php api/models/conventionparticipantsharerecipient.php API/Controllers/ConventionParticipantShareRecipientController.php 3. The adjustment code is implemented as follows, no longer prompted. as shown in Figure 2
-
Post Views: 16 1. In Yii2, when the model is loaded, it always returns FALSE. as shown in Figure 1 2. Find the reason, the $formname parameter of the load method needs to be assigned as, the filling model is successful
-
Post Views: 19 1. The result of preg_split after executing Chinese is garbled. as shown in Figure 1 2. Convert the string to UTF-8 before using preg_split(). u means Unicode (UTF-8) mode, avoiding Chinese character split errors. 3, the split is correct, no more errors.
-
Post Views: 17 1. In the end, it is decided to use the same commit ID first, and in the local environment, after executing the init prod command. as shown in Figure 1 2. The files that have been overwritten are sorted out the corresponding directory structure, including config and web. as shown in Figure 2 3. Then modify the…
-
Post Views: 22 1. The PHP code is implemented as follows 2. When the response is a non-picture buffer, the data written in the picture file is incorrect. Image cannot be opened. The final decision is made to distinguish through the response header content-type. as shown in Figure 1 3. When the response is a non-picture buffer, yii\web\serverErrorHttpException: Failed to…
-
Post Views: 19 1. In LNMP 2.1, delete the default Default virtual host process. Looking at the directory, only .user.ini is left in /home/wwwroot/default, and other files have been manually deleted. as shown in Figure 1 2. Reference: lnmp add and delete virtual host and pseudo-static use tutorialhttps://lnmp.org/faq/lnmp-vhost-add-howto.html. But there is no default virtual host. as shown in Figure 2…