Category: Web Application Development
-
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…
-
Post Views: 15 1. When the advanced template is initialized, an error is reported: Error. Directory Frontend/Web/Assets does not exist, as shown in Figure 1 2. Enter the directory in the container: /mcloud/www/channel-pub-api/frontend/web, and determine the directory: /assets does not exist, as shown in Figure 2 3. Analyze the source code, and you can determine the directory: /frontend/web/assets exist, as…