Category: Web Application Development
-
Post Views: 57 1. Error report: unserialize(): unexpected end of serialized data, as shown in Figure 1 4. Edit \framework\web\CurlManager.php, and print out self::cache_key, as shown in Figure 4 5. Print the result, its value is: yii.curlmanager.rules, as shown in Figure 5 6. Open the URL: https://github.com/yiisoft/yii/issues/4137 and find that there is the same problem, as shown in Figure…
-
Post Views: 13 1. Create a new directory: \backend\views\themes\default, specify the base directory containing the theme resources (css, js, images, etc.), as shown in Figure 1 2. Copy the directory: all files under \backend\views\ (excluding themes), as shown in Figure 2 3. Paste it to the directory: \backend\views\themes\default\, the copy has been successful, as shown in Figure 3 4. Configure…
-
Post Views: 16 1,composer install When prompted: package yiisoft/yii2-codeception is bandoned, you should avoid using it. Use codeception/codeception Instead., as shown in Figure 1 2. Execute the command:composer show -s, only list the current project information, as shown in Figure 2 3. Check the requirements (dev) option and find that codeception/codeception already exists, so you only need to delete yiisoft/yii2-codeception,…
-
Post Views: 50 1. Install V3 through npm, as shown in Figure 1 npm install bootstrap@3 2. Install Grunt to compile css and javascript files. Due to the slow installation speed of npm, finally choose cnpm, as shown in Figure 2 (1) Install grunt-cli in the global environment:npm install -g grunt-cli (2) Enter the /bootstrap/ root directory, and then execute…
-
Post Views: 13 1. Edit \app\config\core.php, configure::write(debug, 2), as shown in Figure 1 2. Edit \App\View\Layouts\Base.ctp, <?php echo $this->element(sql_dump); ?>, as shown in Figure 2 3. After the GET request, print out the SQL statement that has been executed in the view, as shown in Figure 3 4. If it is a POST request, after the final execution is successful,…
-
Post Views: 15 1. Under PHP 7.0.22 and CakePHP 2.10.3, error: the datasource configuration tmp was not found in database.php., as shown in Figure 1 2. Print $this->UsedbConfig, its value is TMP, as shown in Figure 2 3. Make sure that $tmp does not exist in database.php, as shown in Figure 3 4. However, it was normal to confirm in…
-
Post Views: 12 1. Under CakePHP 2.6.4, the error is reported: Error: Cannot usestringAs class name as it is reserved, as shown in Figure 1 2. String is the reserved name in PHP 7.x, so the String class in the Cake cannot be used on PHP 7.x, upgrade to the latest 2.x, and use CakeText instead, as shown in Figure…
-
Post Views: 16 1. Install Laravel by running the create-project command on the command line by composer, and run the command:composer create-project –prefer-dist Laravel/Laravel Laravel, as shown in Figure 1 2. Generate directory: E:\wwwroot\Laravel, as shown in Figure 2 3. Using nginx, adding the following code to the website configuration will forward all requests to the index.php front-end controller, as…
-
Post Views: 14 1. Open the URL:http://www.yii2-app-advanced.dev/, the error directory: E:\wwwroot\yii2-app-advanced/vendor\bower/jquery/dist does not exist, as shown in Figure 1 2. Open e:\wwwroot\yii2-app-advanced\vendor , and confirm that the directory bower does not exist, as shown in Figure 2 3. Check the composer installation prompt and find that the bower has been replaced with the bower-asset directory, which is normal, as shown…
-
Post Views: 12 1. In APM monitoring, due to Alibaba Cloud’s get URL/request, a large number of 404 responses are caused, which has a certain interference to the operation and maintenance work, as shown in Figure 1 2. Request in Postman:http://api.kaiqiu_shujujiexi_api.dev/, response 404, as shown in Figure 2 3. When the request is resolved to an empty route, the so-called…