Category: Web Framework
-
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: 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…
-
Post Views: 17 1. Get the task list of the application of the Penguin, the list is empty, as shown in Figure 1 2. Types of published articles: standard (normal, graphic) articles, successful publishing (that is, the storage is successful), check the sql statement of the publishing task, as shown in Figure 2 3. Get the task list of the…
-
Post Views: 14 1. Perform database migration in Yii 2.0: the MediumText type of MySQL. The four text types are TinyText, Text, MediumText, and LongText. Only supported: text 2. Reference file: \vendor\yiisoft\yii2\db\schemabuildertrait.php, copy to \console\db\mysql\schemabuildertrait.php, refer to the implementation of the text type, add support for tinytext, mediumtext, and longtext 3. In the database migration file, refer to the newly…
-
Post Views: 12 1. List of file extensions that can be uploaded: ogg, pdf, xml, zip, gz, mp4, mp3, wav, webm, gif, jpeg, jpg, png, webp, SVG, SVGZ, TIFF, CSS, CSV, TXT, VCF, VCARD, MOV, QT, MKV, MK3D, MKA, MKS, WMV, FLV, DOC 2. The upload extension is: .doc, the upload is successful, as shown in Figure 1 3. Upload…
-
Post Views: 14 1. Check the log table, the content of the message field is as follows: 2. The analysis found that after publishing the article queue event handler, and after the job execution of the published article queue failed, common\components\queue\PubarticleEventHandler::AfterError(execEvent) $event), throw an exception in this method, once an exception is thrown, it will cause the status of this…