国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home PHP Framework YII How to install the yii framework in win environment?

How to install the yii framework in win environment?

Jul 24, 2020 am 10:46 AM
windows yii framework

How to install the yii framework in win environment?

First method: Installation in the form of archive file (suitable for machines without composer installed)

Enter the download page https://www.yiiframework.com/download, choose to download the first

After the download is completed, there will be a compressed package, unzip it folder, just put it in the specified project directory file

Then try to access the directory and find an error.

Solution: Find web.php in the config directory File, probably line 17, just set the parameter value for cookieValidationKey (cookie encryption key); there is no need to modify it manually when using composer.

<?php

$params = require __DIR__ . &#39;/params.php&#39;;
$db = require __DIR__ . &#39;/db.php&#39;;

$config = [
    &#39;id&#39; => &#39;basic&#39;,
    &#39;basePath&#39; => dirname(__DIR__),
    &#39;bootstrap&#39; => [&#39;log&#39;],
    &#39;aliases&#39; => [
        &#39;@bower&#39; => &#39;@vendor/bower-asset&#39;,
        &#39;@npm&#39;   => &#39;@vendor/npm-asset&#39;,
    ],
    &#39;components&#39; => [
        &#39;request&#39; => [
            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
            &#39;cookieValidationKey&#39; => &#39;abcdefg&#39;,  //給參數(shù)值即可
        ],

Second: Install with composer (needs to circumvent the wall)

First of all, you need to install composer under windows, not much here said. Of course, you also need to configure PHP environment variables, which I won’t go into here.

Address: https://getcomposer.org/Composer-Setup.exe

After Composer is installed, switch to a directory accessible through the Web and execute the following command You can install Yii:

Enter the dos command window through the windows'cmd' command and execute the following command

composer global require "fxp/composer-asset-plugin:~1.0.0"

How to install the yii framework in win environment?

composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced www.dh.com

This The execution of this step takes a long time, and you may also be asked to enter your git username and password

How to install the yii framework in win environment?

How to install the yii framework in win environment?

. At this point, the installation is basically completed. The following steps It is initialization

First enter the project directory of your installation and find theinitscript

How to install the yii framework in win environment?

Execute the init script

init

Select development environment

0

Are you sure to choose

yes

How to install the yii framework in win environment?

成成

#Version upgrade

If you upgrade, there are official instructions. In fact, it is to enter the project directory in dos and execute a command

composer update yiisoft/yii2 yiisoft/yii2-composer bower-asset/inputmask

##Related article tutorials Recommended: "

yii Framework Tutorial

", "PHP Tutorial"

The above is the detailed content of How to install the yii framework in win environment?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Windows 'Getting Windows ready, Don't turn off your computer' stuck Windows 'Getting Windows ready, Don't turn off your computer' stuck Jun 30, 2025 pm 05:18 PM

When you encounter Windows stuck in the "GettingWindowsready, Don't turnoff your computer" interface, you should first confirm whether it is really stuck; 1. Observe whether the hard disk indicator light is flashing, 2. Check whether the fan sound has changed, 3. Wait at least 30 to 60 minutes to ensure that the system has enough time to complete the update operation.

How to run an app as an administrator in Windows? How to run an app as an administrator in Windows? Jul 01, 2025 am 01:05 AM

To run programs as administrator, you can use Windows' own functions: 1. Right-click the menu to select "Run as administrator", which is suitable for temporary privilege hike scenarios; 2. Create a shortcut and check "Run as administrator" to achieve automatic privilege hike start; 3. Use the task scheduler to configure automated tasks, suitable for running programs that require permissions on a scheduled or background basis, pay attention to setting details such as path changes and permission checks.

Windows clipboard history not working Windows clipboard history not working Jun 30, 2025 pm 05:14 PM

When the Windows clipboard history is not working, you can check the following steps: 1. Confirm that the clipboard history function is enabled, the path is "Settings>System>Clipboard", and if it is not enabled, Win V will not respond; 2. Check whether the copy content type is limited, such as large images, special formats or file paths may not be saved; 3. Ensure that the system version supports it, Windows 101809 and above, and some enterprise versions or LTSC do not support it; 4. Try to restart the ClipboardUserService service or end the clipups.exe process; 5. Clear the clipboard cache or reset the settings, close and then turn on the "Clipboard History" or run the "echooff|clip" command to clean up the cache

How to fix a stuck Windows restart screen? How to fix a stuck Windows restart screen? Jun 30, 2025 pm 05:10 PM

Don't rush to reinstall the system when the computer is stuck in the Windows restart interface. You can try the following methods first: 1. Force shutdown and then restart. Apply to the situation where the update is stuck. Repeat two or three times or can skip the lag; 2. Enter the safe mode to check, select Start repair or system restore through troubleshooting. If you can enter safe mode, it may be a driver or software conflict; 3. Use the command prompt to repair the system files, enter the three commands sfc and dism in the recovery environment to repair the damaged files; 4. Check the recently installed hardware or driver, unplug the non-essential devices or uninstall the new driver to eliminate incompatibility issues. In most cases, the above steps can solve the phenomenon of restart lag. If it really doesn’t work, consider reinstalling the system and paying attention to backing up data in advance.

Windows stuck on 'undoing changes made to your computer' Windows stuck on 'undoing changes made to your computer' Jul 05, 2025 am 02:51 AM

The computer is stuck in the "Undo Changes made to the computer" interface, which is a common problem after the Windows update fails. It is usually caused by the stuck rollback process and cannot enter the system normally. 1. First of all, you should wait patiently for a long enough time, especially after restarting, it may take more than 30 minutes to complete the rollback, and observe the hard disk light to determine whether it is still running. 2. If there is no progress for a long time, you can force shut down and enter the recovery environment (WinRE) multiple times, and try to start repair or system restore. 3. After entering safe mode, you can uninstall the most recent update records through the control panel. 4. Use the command prompt to execute the bootrec command in the recovery environment to repair the boot file, or run sfc/scannow to check the system file. 5. The last method is to use the "Reset this computer" function

How to fix SYSTEM_SERVICE_EXCEPTION on Windows? How to fix SYSTEM_SERVICE_EXCEPTION on Windows? Jun 30, 2025 pm 05:11 PM

When encountering SYSTEM\_SERVICE\_EXCEPTION error, 1. Update or roll back the graphics card driver, try to update the driver with the device manager, download and install the official website, or use DDU to completely uninstall and reinstall; 2. Check the memory stick, detect abnormalities through the task manager and Windows memory diagnostic tool, and clean the memory stick or change the slot test if necessary; 3. Repair the system files, run the sfc/scannow and DISM commands with administrator permissions, and check Windows Update; 4. Uninstall recently installed software or updates, especially antivirus software or virtual machine tools. If the above method is invalid, it may be a hardware problem that needs further detection.

How to fix a corrupted user profile in Windows? How to fix a corrupted user profile in Windows? Jun 30, 2025 pm 05:11 PM

Corruption of user profile can be solved by creating a new account, using system tools to repair, manually migrating data, and modifying the registry. After confirming the problem, you can try the following methods in turn: 1. Create a new local account to determine whether it is the original account problem; 2. Use sfc/scannow and DISM tools to repair the system files; 3. Create a new user through the administrator account and manually migrate the old account files (including the hidden AppData directory); 4. Advanced users can try to locate the ProfileList item in the registry editor, check and repair the abnormal ProfileImagePath entry, and backup the registry before the operation.

The RPC server is unavailable Windows The RPC server is unavailable Windows Jul 06, 2025 am 12:07 AM

When encountering the "RPCserverisunavailable" problem, first confirm whether it is a local service exception or a network configuration problem. 1. Check and start the RPC service to ensure that its startup type is automatic. If it cannot be started, check the event log; 2. Check the network connection and firewall settings, test the firewall to turn off the firewall, check DNS resolution and network connectivity; 3. Run the sfc/scannow and DISM commands to repair the system files; 4. Check the group policy and domain controller status in the domain environment, and contact the IT department to assist in the processing. Gradually check it in sequence to locate and solve the problem.

See all articles