Author: 永夜
-
Post Views: 35 1. Generate src/frontend/views/use-case/view-mobile.php~ in phpstorm, how to cancel? as shown in Figure 1 2. File – Settings – Appearance and Behavior – System Settings – Auto Save – Backup files before saving, uncheck them. as shown in Figure 2
-
Post Views: 33 1. — `Official-Website-Management-System`.recommendation_slots definition There are two tables for the existing recommendation bits and recommendation bit data. There is also an initialization script of the recommended bit, the code is implemented as follows: Implemented logic to add or update based on Alias, and Alias has a fixed correspondence with the ID. In the code, when hardcoded to…
-
Post Views: 25 1. Batch replacement needs to be performed in the code, the rules are as follows, as shown in Figure 1 2. Replacement results are as expected
-
Post Views: 28 1. The same piece of code is effective in local Windows, but it is invalid for troubleshooting and analysis in the Linux environment. The code is as follows 2. In the Linux system of the production environment, the code if ($item->order_number != $neworderNumber) { } has not been executed. order_number=17, expected to be order_number=16. As shown in…
-
Post Views: 30 1. In the background of WordPress, when switching from the code to visualization, it cannot be switched, and the console reports an error: uncaught typeError: _.pluck is not a function. as shown in Figure 1 2. The description code uses _.pluck(), but the currently loaded version of the underscore.js has been removed. However, some old plugins, themes,…
-
Post Views: 32 1. Now in the addition|editing page of an article, the cover image of the article is realized by uploading the image by calling the interface image/upload. ID Write to the cover_image_id of the article table. as shown in Figure 1 2. Now it is planned to implement a picture management, and I also hope that the image/upload…
-
Post Views: 30 1. The table structure is designed to allow alias to be null, and the default is null, and a unique index is added. 2. When the background form is submitted for editing, the empty string is automatically converted to null. Set conversion rules and validation in the Rules of the model 3. In the front-end view file,…
-
Post Views: 25 1. /page-editor/?pageid=1833011727099722 Open response 200. as shown in Figure 1 2. /page-editor/mobile?pageid=1833011727099722&type=mobile Now open the response 404 . as shown in Figure 2 3. Now there is only one index.html file under the directory backend\web\page-editor. Page-editor is implemented based on Vue. The existing Nginx configuration is as follows: 4. When nginx matches /page-editor/mobile, the /page-editor/ location will…
-
Post Views: 32 1. In Yii2, an error is reported: call to undefined method closure::EvaluateDependency(). as shown in Figure 1 2. Add a page cache to the details page corresponding to the View method. The code is implemented as follows 3. The current version of Yii2 is 2.0.50. Instead of directly passing the closure to dependency, it is a dependency…
-
Post Views: 27 1. In Yii2, how to implement the route of case/. If configuredcase/=>use-case/index, is invalid, open /case/ will redirect to /case. As shown in Figure 1 2. Adjust the configuration as follows,Suffix=>/ / *, the response is 200 , and /case is opened, and it will also automatically jump to /case/ in line with expectations. as shown in…