Category: Build
-
Post Views: 14 1. The previous article:https://www.shuijingwanwq.com/2018/01/18/2328/ 2. Refer to step 11, the DB component is moved to the development environment to facilitate the use of GII, \common\config\base.php, as shown in Figure 1 3. Configured as a production environment, so that the multi-tenant implementation of the test database migration is not dependent on the DB component, as shown in Figure…
-
Post Views: 13 1. The multi-tenant system contains multiple tenants, and each tenant has its own database configuration information. The existing requirement is to connect the database based on the response host name, user name and password, as shown in Figure 1. 2. Now it is configured as an application component, \common\config\base.php, as shown in Figure 2 3. Open dubug,…
-
Post Views: 15 1. Open in the browser:http://frontend.cmcp-api.localhost/, a debugger toolbar will appear at the bottom of the page, you can click to expand, as shown in Figure 1 2. In Postman, gethttp://www.cmcp-api.localhost/v1/pages, 200 responses, but no debugger toolbar appears, as shown in Figure 2 3. Continue to step 1, click the Yii logo on the debugger toolbar, you can…
-
Post Views: 16 1. Previous:https://www.shuijingwanwq.com/2017/11/30/2084/ 2. The existing default interface, as shown in Figure 1 3. The designed UI interface needs to be implemented in this way, as shown in Figure 2 4. Copy:\vendor\bower\admin-lte\build\less\variables.less To: \backend\web\themes\default\css\variables.less, clear all the contents 5. Create a new one: \backend\web\themes\default\css\_all-skins.less, as shown in Figure 3 6. Create a new one: \backend\web\themes\default\css\adminlte.less, as shown in…
-
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: 11 1. Open the backend – content – text component – create text block, error: classtrntv\Aceeditor\Aceeditornot found, as shown in Figure 1 2. Edit yii2-starter-kit\vendor\trntv\yii2-file-kit\composer.json, as shown in Figure 2 “autoload”: { “psr-4”: { “trntv\\filekit\”: “” } }, Modified to: “autoload”: { “psr-4”: { “trntv\\filekit\”: “src/” } }, Note: Redefine the mapping from namespace to directory, the directory…
-
Post Views: 14 1. Install yii2-starter-kit under Windows 10 and Nginx 1.10, and run on the command line: php console/yii app/setup, as shown in Figure 1 2. Error: create unique index IDx_article_slug on {{%article}} (slug) …exception: sqlstate[42000]: Syntax error or access Violation: 1071 specific key was too long; max key length is 767 bytes, as shown in Figure 2 Translation:…
-
Post Views: 12 1. The first connection is selected, as shown in Figure 1: 2. Due to the instance type: I/O optimization, disk type: SSD cloud disk, so refer to the URL:https://help.aliyun.com/knowledge_detail/6689611.html 3. The download link of auto_fdisk_ssd.sh, as shown in Figure 2: http://aliyun_portal_storage.oss-cn-hangzhou.aliyuncs.com/help%2Fecs%2Fauto_fdisk_ssd.zip?spm=5176.776689611.0.0.DmH9za&file=help%2Fecs%2Fauto_fdisk_ssd.zip 4. Download tool: auto_fdisk_ssd.sh, after pasting the download link, you need to modify it, as shown…