Year: 2020
-
Post Views: 60 1. In Navicat for MySQL, when editing the database, the database name cannot be edited, as shown in Figure 1 2. Rename the database in phpmyadmin, it can be seen that phpmyadmin can support the operation of direct rename, as shown in Figure 2 3. Prepare to rename g-s-yii2-app-advanced-test in Navicat for mysql, and create a new…
-
Post Views: 15 1. Reference URL:https://www.shuijingwanwq.com/2020/01/19/3869/, upgrade Yii Framework from version 2.0.15.1 to 2.0.31 2. In some use: \guzzlehttp\json_encode, \guzzlehttp\json_decode Error in the program, the final analysis found that the reason is that the directory: /vendor/guzzlehttp/guzzle, /vendor/guzzlehttp/promises no longer exists. as shown in Figure 1 After careful analysis, find the second step in the reference URL, run the Composer Update…
-
Post Views: 18 1. Change the maximum width of the website of the WordPress theme: 1680 px, as shown in Figure 1 2. Check the thumbnail image of the home page, its original size is: 720 * 340 px, which has now been enlarged to: 1020 * 360 px, which has become not clear enough, as shown in Figure 2…
-
Post Views: 17 1. Check composer.json, prepare to uninstall the package: MoonToast Math Library 2. Use help to obtain the help information of the relevant command: remove, refer to the URL:https://getcomposer.org/doc/03-cli.md#remove 3. After the remove command deletes the dependent package relationship from the composer.json file in the current directory, the package corresponding to the relationship will be uninstalled and its…
-
Post Views: 18 1. Composer has been installed before, to ensure the latest version is used. You can update Composer to version 1.9.2 by running composer self-update, as shown in Figure 1 2. Updating Yii 2 to the latest version by running Composer Update, the Yii Framework has been upgraded from version 2.0.15.1 to 2.0.31, as shown in Figure 2…
-
Post Views: 16 1. Composer installation: nicolab/php-ftp-client reports an error: The requested php extension ftp is missing from your system, as shown in Figure 1 2. The Windows version of PHP has built-in support for this extension. Edit C:\PHP-7.2.14\php.ini, enable extension: FTP 3. Install again, the installation is successful, as shown in Figure 2
-
Post Views: 17 1. When the environment of the application running is the development environment, that is, when the value of yii_env is dev, close the schema cache and edit environments/dev/common/config/main-local.php 2. When the application running environment is the production environment, that is, when the value of yii_env is prod, turn on the schema cache, edit environments/dev/common/config/main-local.php 3. After enabling…